Comments (18)
@mjwvb Yes the pipeline is not stable yet, unfortunately, but we're trying to fix it right now
from ccxt.
Hello @mjwvb, thanks for bringing our attention to this; we will implement it as soon as possible!
from ccxt.
@mjwvb Actually I'm testing it and this is only supported for market-buy orders
}
RequestBody:
nonce=1715879486467&pair=LTCUSDT&type=sell&ordertype=market&volume=10&oflags=viqc
handleRestResponse:
kraken POST https://api.kraken.com/0/private/AddOrder 200 OK
ResponseHeaders:
ResponseBody:
{"error":["EGeneral:Invalid arguments:viqc"]}
with market sell, throws this error
from ccxt.
hum, market buy also throws an error 🤔
RequestBody:
nonce=1715880275284&pair=LTCUSDT&type=buy&ordertype=market&volume=5&oflags=viqc
handleRestResponse:
kraken POST https://api.kraken.com/0/private/AddOrder 200 OK
ResponseBody:
{"error":["EGeneral:Invalid arguments:volume"]}
from ccxt.
@mjwvb apparently only works with USD
markets and not USDT
🤔
RequestBody:
nonce=1715880738343&pair=XLTCZUSD&type=buy&ordertype=market&volume=5&oflags=viqc
handleRestResponse:
kraken POST https://api.kraken.com/0/private/AddOrder 200 OK
ResponseHeaders:
ResponseBody:
{"error":[],"result":{"txid":["OCSKHT-X2QO7-T4WV3L"],"descr":{"order":"buy 5.00000000 LTCUSD @ market"}}}
from ccxt.
@carlosmiei That's very unfortunate. Apparently there's also another version of the docs which says:
viqc: order volume expressed in quote currency. This option is supported only for buy market orders. Also not available on margin orders. See:
https://docs.kraken.com/api/docs/rest-api/add-order
Interesting how there's two types of api docs?
https://docs.kraken.com/rest/#tag/Spot-Trading/operation/addOrder
It seems that /api/ is officially linked, and that /rest/ can only be found on google. Oh well...
Still weird how it not works for the USDT pair though... Anyway thanks for checking and putting in all the effort! I should have checked the API a bit more, but was a little bit on a rush. So sorry for that :)
from ccxt.
@mjwvb Yeah the docs and the API are very confusing in this regard. Nonetheless, we will implement the createMarketBuyOrderWithCost
for the USD market pairs (also very strange not supporting USDT markets)
from ccxt.
@carlosmiei Alright! According to the docs you should also exclude margin orders, but cannot confirm right now.
Also now that you're into the oflags, I saw in the code that when using postOnly on limit orders, the oflags params is always forced set to "post" instead of appending any existing oflags. It means you cannot provide your own oflags in combination with the native postOnly. See:
Line 1789 in 9ab5996
from ccxt.
@mjwvb Yes you're right, I will update it to take that into consideration.
from ccxt.
Thanks! I'll be testing it out in the near future.
By the way, I think USDT markets actually are supported but the minimum order size of LTC/USDT is 10 USDT, and you provided 5 USDT. At least that's what the kraken UI is telling me: "Cannot be smaller than 10 USDT"
from ccxt.
@mjwvb omg you're right 😅, that was the problem, thanks once again! will be updated shortly
nonce=1715951571837&pair=LTCUSDT&type=buy&ordertype=market&volume=10&oflags=viqc
handleRestResponse:
kraken POST https://api.kraken.com/0/private/AddOrder 200 OK
ResponseBody:
{"error":[],"result":{"txid":["OVKIAP-DEGPW-MMZK4F"],"descr":{"order":"buy 10.00000000 LTCUSDT @ market"}}}
from ccxt.
@carlosmiei haha, Kraken has ridiculous minimum sizes though...
from ccxt.
@mjwvb we just released a new version with the fixes, can you please update your ccxt version and try again?
from ccxt.
@mjwvb turns out we have a small issue with the pipeline so we didn't release yet
from ccxt.
Am I right the release is still pending? Npm can't find 4.3.26
from ccxt.
@mjwvb We just released a nee version, 4.3.27, please let us know if anything
from ccxt.
@carlosmiei using 4.3.27 now and it seems to be working perfectly. Thank you once again!
from ccxt.
@mjwvb No problem!
Will close this issue, let us know if anything
from ccxt.
Related Issues (20)
- python ccxt fetch_ohlcv on kraken doesnt honor since parameter HOT 9
- Bitget error OHLCV for delivery futures HOT 5
- Coinbase trades pagination cursor HOT 9
- MEXC InvalidNonce HOT 1
- Bitget - increase speed limit on createOrder HOT 1
- add safetrade exchange
- New Exchange Request: BTCC
- CCXT.Pro watchOrders sending incorrect order events HOT 4
- Bitmart error fetching tickers HOT 2
- Revert exchange name "Coinbase Advanced" back to "Coinbase" for backward compatibility... HOT 4
- kraken fetch_ohlcv since parameter broken HOT 3
- request poloniex private api show 400 Bad Request HOT 4
- Coinbase: Implementing fetch_trading_fees? HOT 5
- ccxt pro bingX watchTrades in swap market return empty list in python HOT 3
- Binance watch_order_book silently hangs indefinitely HOT 1
- Parsing the unrealized P&L from fetchBalance
- Basic commands from USD market not functional with USDT
- BitMart fetch_tickers() all 'percentage' values are non-negative HOT 1
- Kraken: trading fee is returned as percentage and not as ratio
- phemex watchOrders exception HOT 1
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.