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)
- i'm try to do a code, it use ccxt to create a bot trading in ftx, but it occur (Exception has occurred: AttributeError module 'ccxt' has no attribute 'ftx'. AttributeError: module 'ccxt' has no attribute 'ftx'). What shuold i do? . My code:exchange = ccxt.ftx({ "apiKey": secret.PUBLIC_KEY, "secret": secret.SECRET_KEY }) HOT 1
- error in ccxt HOT 1
- error when import talib HOT 1
- C# Bitstamp CreateOrder Content-Type header is not accepted + wrong nonce generation HOT 4
- 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
- Order side invalid error on Kucoin HOT 4
- 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
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.