Questions tagged [kucoin]

For questions on the APIs provided by the cryptocurrency exchange KuCoin.

KuCoin is a global cryptocurrency exchange that offers a variety of features and trading options.

They offer a REST API and Websocket feed, for both spot trading and futures trading.

63 questions
0
votes
0 answers

Why does KuCoin allTickers return different trading pairs?

I am using the GET /api/v1/market/allTickers to get the price of all the trading pairs. Each time data is returned, there are 1300 to 1302 pairs. Each time it is missing a certain trading pair. When I keep track of different trading pairs, there…
nsyi
  • 43
  • 1
  • 8
0
votes
0 answers

How to have the current price of all currencies at the same time by separating their name from Kucoin

I want to use Websockets Kocoin SDK to get data https://github.com/Kucoin/kucoin-python-sdk I want to get the current price of all currencies. For this, I used the topic /market/snapshot:USDS in the await ws_client.subscribe() line I want to have…
0
votes
2 answers

How do I check if my order is filled kucoin API

How do I check if my order is filled? I cant get what I really want, I need a responce that will indicate that the order has been filled. here is my code # CHECKING IF ORDER IS FILLED now5 = int(time.time() * 1000) urlFill =…
DeziLuv
  • 69
  • 6
0
votes
1 answer

How to fix Kucoin 400 Bad Request - APIs - Python

I wanted to place order limit with my kucoin api using python but all i got is (Bad Request) 400. How do I solve this, please I need help. here is my code. stringId = secrets.token_hex(8) #Generating TradeID url =…
DeziLuv
  • 69
  • 6
0
votes
2 answers

Kucoin futures Python API, Kline get data not working

I'm trying to get Klines historical data from a specific time (4th of April of 2022) of the futures Bitcoin market (which has the symbol '.KXBTUSDT'). However when I call the function the API returns an empty array. Furthermore, when I call the…
Quents
  • 13
  • 3
0
votes
3 answers

make an order kucoin API in python

import requests, json, time url = 'https://api.kucoin.com/api/v1/orders' headers = { "KC-API-KEY": '', "KC-API-PASSPHRASE": '', "clientOid": "AAA", "side": "sell", "symbol": "BTC-USDT", "type": "market", "size":…
iksskjj
  • 49
  • 7
0
votes
0 answers

ALGObot, What error is causing this to only fall through ".......sold for a profit"?

def execute_doge_musktrade(): ###Due to technical difficulties in instanteous limit orders (delay has been up to 6seconds) ###I have decided to instanteously order via market order and independently #set the dogecoin price for monitoring doge_data…
0
votes
1 answer

python cctx Kucoin futures take profit

I´m using ccxt on python to make a bot with Kucoin. Is there a way to make a Kucoin futures Order with take profit. take and order is easy kucoin_futures.create_order('XBTUSDTM', "market", "buy", 1, None, {'leverage': 1}) but not a way to add take…
joseska
  • 1
  • 2
0
votes
1 answer

Cannot Place an order in Kucoin API Python

I'm trying to place a sell market order on Kucoin API in Python. It gives me a successful response, but doesn't place the order: 200 {'code': '200000', 'data': {'currentPage': 1, 'pageSize': 50, 'totalNum': 0, 'totalPage': 0, 'items': []}} The…
0
votes
1 answer

Can't receive any data from websocket - Only "sleeping to keep loop open"

When using the sample code in the wiki of python-kucoin: https://python-kucoin.readthedocs.io/en/latest/websockets.html I keep on getting "sleeping to keep loop open" while in debug mode (I am using PyCharm). Digging into the code, I also realized…
JejeBelfort
  • 1,593
  • 2
  • 18
  • 39
0
votes
1 answer

Kucoin API wallet balance

I am trying to check my Spot account balance using the Kucoin API, get_accounts().(Github: Link) And although on github and API documentation get_accounts specifies 2 optional arguments, when I pass any args I get an error.…
0
votes
1 answer

Kucoin Java SDK error KC-API-KEY not exists

Following their guide in usage here I couldn't get started. The code: KucoinClientBuilder builder = new KucoinClientBuilder() .withApiKeyVersion(2) .withBaseUrl("https://openapi-sandbox.kucoin.com") …
M D P
  • 4,525
  • 2
  • 23
  • 35
0
votes
1 answer

Kucoin Api KC-API-PASSPHRASE is Invalid

Im trying to call "/api/v1/sub-accounts" endpoint to get Account balance but there is something wrong with it! here is my code : public Observable> getBalance(){ long timestamp = Timestamp.from(Instant.now()).getTime() +…
Sep
  • 147
  • 8
-1
votes
1 answer

Get sub-account's Futures account balance using KuCoin API and Google Apps Script

I am trying to get a value (USDT) from KuCoin sub-account's Futures account but having an issue. Here is the script: function getKuCoinBalance(apiKey, secretKey, passphrase, asset) { var endpoint = "/api/v1/accounts"; var baseUrl =…
-1
votes
1 answer

Web scraping in Python. P2P data extraction in Binance and other exchanges

I am trying to develop a python software for extracting prices by web scraping from these sites: https://p2p.binance.com/es/trade/all-payments/USDT?fiat=ARS https://www.kucoin.com/es/otc/buy/USDT-ARS I used as a guide a simple youtube tutorial where…
Alan
  • 1
  • 2