Comments (3)
@duncanmcl It works for me. Have you checked your balance?
kucoin.createLimitOrder (ENA/USDT, SELL, 1, 1.5)
fetch Request:
kucoin POST https://api.kucoin.com/api/v1/orders
RequestHeaders:
{
}
RequestBody:
{"clientOid":"7a89c940-a7b1-49eb-9c57-91f0a5be3999","side":"SELL","symbol":"ENA-USDT","type":"limit","size":"1","price":"1.5"}
handleRestResponse:
kucoin POST https://api.kucoin.com/api/v1/orders 200 OK
ResponseHeaders:
{
}
ResponseBody:
{"code":"200000","data":{"orderId":"6666955670ad3800070e559f"}}
{
info: { orderId: '6666955670ad3800070e559f' },
id: '6666955670ad3800070e559f',
symbol: 'ENA/USDT',
fee: {},
trades: [],
fees: [ {} ]
}
from ccxt.
I found the reason. It looks like SELL command became case sensitive in Kucoin (at least for me).
This python code is giving error {"msg":"Order side invalid.","code":"400100"}:
response = exchange.createLimitOrder("ENA/USDT", "SELL",1,1.5)
Verbose output of the uppercase "SELL" code is:
RequestBody: {"clientOid":"2624adef-cbde-4caa-9bbc-27a30496cf58","side":"SELL","symbol":"ENA-USDT","type":"limit","size":"1","price":"1.5"}
However, this code is working:
response = exchange.createLimitOrder("ENA/USDT", "sell",1,1.5)
Verbose output of the lower case "sell" code is
RequestBody: {"clientOid":"7ee965cd-803c-4e4f-a2eb-6fb8b98a853a","side":"sell","symbol":"ENA-USDT","type":"limit","size":"1","price":"1.5"}
Uppercase SELL command was also working until this Sunday on Kucoin. I did not change anthing in the code, but the command stopped working on Sunday. Maybe, the api server that serves my account has been updated with new software.
from ccxt.
Related Issues (20)
- Bitget order subscription duplication. C# HOT 3
- How to make BBO orders in Binance? Sell & Buy HOT 3
- InvalidNonce bitfinex2 invalid checksum HOT 9
- Bitget some of subscription are misssed. C# HOT 7
- race condition during auth HOT 4
- [Typescript] Not all types are being exported HOT 4
- BitMEX - watch_order_book error once a day - safe_string default value NoneType and operation of return is to append a string HOT 2
- C# WatchOrders Hyperliquid Subscriptions HOT 7
- coinbase advanced; fetch_accounts_v3 pagination doesn't work HOT 6
- [Bug][fetchTransfers] Binance - fetchTransfers seems to return only transfers from the Spot account to the Linear (Margin) account but not the other way around HOT 4
- error in ECS(VPS):ccxt.base.errors.ExchangeNotAvailable: binance GET https://api.binance.com/api/v3/exchangeInfo HOT 1
- Inconsistent Ticker Data for Bybit linear futures via websockets HOT 5
- Issue with ArrayCacheBySymbolBySide in watch_positions HOT 2
- Please list www.snipeEX.com
- Hyperliquid: withdraw function is outdated and doesn't use the new withdraw3 schema HOT 5
- Add support for paginated call for fetchOrdersByStatus in Gate exchange
- Bybit exchange reporting wrong lastPrice in Spot HOT 1
- Bitget problem for buy order with createMarketBuyOrderRequiresPrice = false HOT 6
- fetchOHLCV: missing last elapsed time unit (on phemex - kline) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccxt.