Coder Social home page Coder Social logo

Comments (18)

carlosmiei avatar carlosmiei commented on June 16, 2024 1

@mjwvb Yes the pipeline is not stable yet, unfortunately, but we're trying to fix it right now

from ccxt.

carlosmiei avatar carlosmiei commented on June 16, 2024

Hello @mjwvb, thanks for bringing our attention to this; we will implement it as soon as possible!

from ccxt.

carlosmiei avatar carlosmiei commented on June 16, 2024

@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.

carlosmiei avatar carlosmiei commented on June 16, 2024

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.

carlosmiei avatar carlosmiei commented on June 16, 2024

@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.

mjwvb avatar mjwvb commented on June 16, 2024

@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.

carlosmiei avatar carlosmiei commented on June 16, 2024

@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.

mjwvb avatar mjwvb commented on June 16, 2024

@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:

request['oflags'] = 'post';

from ccxt.

carlosmiei avatar carlosmiei commented on June 16, 2024

@mjwvb Yes you're right, I will update it to take that into consideration.

from ccxt.

mjwvb avatar mjwvb commented on June 16, 2024

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.

carlosmiei avatar carlosmiei commented on June 16, 2024

@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.

mjwvb avatar mjwvb commented on June 16, 2024

@carlosmiei haha, Kraken has ridiculous minimum sizes though...

from ccxt.

carlosmiei avatar carlosmiei commented on June 16, 2024

@mjwvb we just released a new version with the fixes, can you please update your ccxt version and try again?

from ccxt.

carlosmiei avatar carlosmiei commented on June 16, 2024

@mjwvb turns out we have a small issue with the pipeline so we didn't release yet

from ccxt.

mjwvb avatar mjwvb commented on June 16, 2024

Am I right the release is still pending? Npm can't find 4.3.26

from ccxt.

carlosmiei avatar carlosmiei commented on June 16, 2024

@mjwvb We just released a nee version, 4.3.27, please let us know if anything

from ccxt.

mjwvb avatar mjwvb commented on June 16, 2024

@carlosmiei using 4.3.27 now and it seems to be working perfectly. Thank you once again!

from ccxt.

carlosmiei avatar carlosmiei commented on June 16, 2024

@mjwvb No problem!
Will close this issue, let us know if anything

from ccxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.