okxapi/python-okx

Parameter posSide error

Closed this issue · 1 comments

OPAYA commented

result = tradeAPI.place_order( instId="MATIC-USDT-SWAP", tdMode="isolated", side="buy", ordType="market", sz="1", tag=tag )

I have a this error [{'clOrdId': '', 'ordId': '', 'sCode': '51000', 'sMsg': 'Parameter posSide error

OPAYA commented

result = tradeAPI.place_order( instId="MATIC-USDT-SWAP", tdMode="isolated", side="buy", posSide="long", ordType="market", sz="1", tag=tag )

Is this correct? Please change the official docs for me.