You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
Thank you for your support and usage of this SDK. We want to inform you that this project is no longer actively maintained or updated.
To ensure you have access to the latest features, improvements, and support, we recommend transitioning to our new SDK: [KuCoin Universal SDK](https://github.com/Kucoin/kucoin-universal-sdk).
The KuCoin Universal SDK offers:
- A unified architecture across multiple programming languages.
- Enhanced performance and stability.
- Continued support and updates.
We appreciate your understanding and encourage you to migrate to the new SDK for a better development experience. Should you have any questions or require assistance, feel free to reach out to us.
# MarketDatafromkucoin.clientimportMarketclient=Market(url='https://api.kucoin.com')
# client = Market()# get symbol klineklines=client.get_kline('BTC-USDT','1min')
# get symbol tickerserver_time=client.get_server_timestamp()
api_key='<api_key>'api_secret='<api_secret>'api_passphrase='<api_passphrase>'# Tradefromkucoin.clientimportTradeclient=Trade(key='', secret='', passphrase='', url='')
# place a limit buy orderorder_id=client.create_limit_order('BTC-USDT', 'buy', '1', '8000')
# place a market buy order Use cautiouslyorder_id=client.create_market_order('BTC-USDT', 'buy', size='1')
# cancel limit orderclient.cancel_order('5bd6e9286d99522a52e458de')
# Userfromkucoin.clientimportUserclient=User(api_key, api_secret, api_passphrase)
address=client.get_withdrawal_quota('KCS')