Skip to content

Commit 46974ba

Browse files
lishoujunokxapi
authored andcommitted
Update Trade.py add place order param tradeQuoteCcy
to support usd(s)
1 parent a5af471 commit 46974ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

okx/Trade.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def __init__(self, api_key='-1', api_secret_key='-1', passphrase='-1', use_serve
1212

1313
# Place Order
1414
def place_order(self, instId, tdMode, side, ordType, sz, ccy='', clOrdId='', tag='', posSide='', px='',
15-
reduceOnly='', tgtCcy='', stpMode='', attachAlgoOrds=None, pxUsd='', pxVol='', banAmend=''):
15+
reduceOnly='', tgtCcy='', stpMode='', attachAlgoOrds=None, pxUsd='', pxVol='', banAmend='', tradeQuoteCcy=''):
1616
params = {'instId': instId, 'tdMode': tdMode, 'side': side, 'ordType': ordType, 'sz': sz, 'ccy': ccy,
1717
'clOrdId': clOrdId, 'tag': tag, 'posSide': posSide, 'px': px, 'reduceOnly': reduceOnly,
18-
'tgtCcy': tgtCcy, 'stpMode': stpMode, 'pxUsd': pxUsd, 'pxVol': pxVol, 'banAmend': banAmend}
18+
'tgtCcy': tgtCcy, 'stpMode': stpMode, 'pxUsd': pxUsd, 'pxVol': pxVol, 'banAmend': banAmend, 'tradeQuoteCcy': tradeQuoteCcy}
1919
params['attachAlgoOrds'] = attachAlgoOrds
2020
return self._request_with_params(POST, PLACR_ORDER, params)
2121

0 commit comments

Comments
 (0)