[Python] stop-loss being triggered immediately on kucoin

Discussão em 'Python' iniciado por Stack, Maio 24, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to add a trailing stop-loss to an existing position through the kucoin futures api. but it closes the position straight away, treating it like a regular limit order. any Idea why this is happening? thanks

    exchange.create_order(

    symbol='SHIBUSDTM',
    type='limit',
    side='sell',
    amount=1,
    price=0.000013,
    params={
    'stopLoss': {
    'stop': 'loss',
    'triggerStopDownPrice': 0.0000144, # Start trailing here
    'trailingDistance': 0.0000014,
    'type': 'down', # For long positions
    'reduceOnly': True,
    'postOnly': True

    }
    }
    )

    Continue reading...

Compartilhe esta Página