Kucoin / kucoin-python-sdk

MIT License
46 stars 16 forks source link

Margin Orders? #24

Closed slhawk98 closed 2 months ago

slhawk98 commented 3 years ago

Are margin orders allowed? If so, what's the syntax? I see magin.py file but not sure how to call functions within that file.

sparkmobi commented 2 years ago

+1

codewc commented 2 years ago

Are margin orders allowed? If so, what's the syntax? I see magin.py file but not sure how to call functions within that file.

from kucoin.client import Trade
client = Trade(key='', secret='', passphrase='', is_sandbox=False)

order =client.create_limit_margin_order(
            symbol='KCS-USDT',
            side='buy',
            size='0.01',
            price='0.001',
            clientOid=get_uuid(),
            remark='test create_market_margin_order',
        )
ISAAC-XXYYZZ commented 2 months ago

Since this issue has already been addressed and there have been no updates for a long time, we will now close it. If you need any further assistance, feel free to ask!