Closed FirstVoyager closed 3 months ago
Maybe try something like this . .
from kucoin.client import Trade
trade = Trade(api_key, api_secret, api_passphrase,
is_sandbox=False, url='', is_v1api=False)
def close(symbol, size):
my_order = trade.create_market_order(
symbol=symbol,
side='sell',
size=size
)
order_id = my_order['orderId']
return order_id
Good luck!
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!
What is this Error?
Error
AttributeError: 'function' object has no attribute 'create_limit_order'