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
4
votes
1 answer

How to make a Kucoin futures order with ccxt in python?

The following code work binance futures using ccxt. What is the correct code/configuration for kucoin futures? import ccxt import pandas as pd binance = ccxt.binance() binance.options = {'defaultType': 'delivery', 'adjustForTimeDifference':…
Hawks
  • 71
  • 1
  • 2
3
votes
1 answer

How to create a valid signature message to POST an order to the Kucoin Future API?

I am trying to place an order but it gives me this error: {"code":"400005","msg":"Invalid KC-API-SIGN"} I'll be so thankful if someone check my code and let me know the problem import requests import time import base64 import hashlib import…
Maz1921
  • 31
  • 1
3
votes
2 answers

Kucoin futures API [python] - "code":"429000","msg":"Too Many Requests"

I have a problem when I send an order to kucoin exchange with the API. "code":"429000","msg":"Too Many Requests" It seems that my code send too many requests to Kucoin, my IP address exceed the rate limit (the request rate limit is 30…
3
votes
3 answers

I have a problem in Trading with Kucoin API (Python)

I tried to do API trading in Kucoin. I developed a bot that is finding the trading opportunities well, while I encountered problems in making new orders. Pls check the code and help me to make it functional. The code was edited in accordance with…
Javad
  • 47
  • 1
  • 5
3
votes
0 answers

What is this message on the KuCoin API? code: '200000', msg: 'The interface is offline'

I'm trying to perform a transfer operation from my main account to a trade account using the KuCoin API but I'm getting the result: { code: '200000', msg: 'The interface is offline' } What does it mean? The result has the status code for a…
ombo
  • 31
  • 2
2
votes
2 answers

kucoin websocket api, how to "subscribe" to their public channel, they say no authorization required, but they ask for a token :(

The question is about kucoin websocket public channel (not trades) just last trades I just want a live feed of trades like other crypto exchanges... but when I want to connect to "wss://ws-api-futures.kucoin.com/endpoint" I get WebSocketError:…
John R
  • 277
  • 3
  • 10
2
votes
0 answers

Is there a method for building Kline trading data using live ticker information from an exchanges' API?

I have built a Python spot trading bot and intend to use it with KuCoin exchange. The bot requires historical OHLCV data for each coin on a 5m interval for the last 50 datapoints. My intention is retrieve this kline (candlestick) data for each coin…
Mets_CS11
  • 99
  • 1
  • 9
2
votes
1 answer

how I can take all klines for symbols in kucoin with python

I want take all symbols for future in kucoin and then I want to get klines for all symbol I write some code but I cant get all symbol and also I cant get klines get symbols: import requests import pandas as pd url = "…
2
votes
1 answer

What does "size" parameter in Kucoin futures API refer to?

Kucoin Futures API documentation for placing a limit order ( https://docs.kucoin.com/futures/#place-an-order ) has a param called "size" with type Integer. The description is given as "Order size. Must be a positive number". A limit order to buy…
claireablani
  • 7,804
  • 5
  • 16
  • 19
2
votes
1 answer

ModuleNotFoundError: No module named 'kucoin.client'

I am getting the error: "ModuleNotFoundError: No module named 'kucoin.client'; 'kucoin' is not a package" when running the code underneath. I did pip install like in the documentation here: hhttps://python-kucoin.readthedocs.io/en/latest/ . What is…
2
votes
2 answers

Can't create KuCoin order with Google App Scripts

I can get account details so my authentication appears correct but in trying to modify that code to create an order it returns a code 401 "msg":"Invalid KC-API-SIGN". The modification involved adding in the method and payload and changing endpoint…
2
votes
2 answers

C++ Signing message on kucoin API

I'm building a multi-exchange bot in C++ and I'm having one small problem. KuCoin exchange has proven to be frustrating to say the least, one of the headers is a signature header where you encode the string with HMAC sha256 and then encode THAT with…
beyron
  • 21
  • 1
1
vote
0 answers

Python code to make spot order with Kucoin api

I'm new to apis but I've been trying to write a code to place a spot order for crypto through the kucoin api but I keep getting a status code of 400, "Bad request". I'm not really sure where the problem is from. This is all in python by the…
1
vote
1 answer

how i can use another symbol in kucoin websocket other than XBTUSDM?

I use kucoin websocket to connect to kucoin exchange and receive real-time data https://github.com/Kucoin/kucoin-futures-python-sdk In order to receive the data of different currencies, the following address must be used (according to what is in the…
Aanjay
  • 13
  • 3
1
vote
1 answer

How do I get only the price of ticker from Kucoin using API in Python

all i want is to print out only the price example: 30171.1 this is my code bellow from webbrowser import get import requests from kucoin.client import Client url = 'https://api.example.com' ticker = requests.get(url +…
DeziLuv
  • 69
  • 6
1
2 3 4 5