Coder Social home page Coder Social logo

Kraken createOrderWs about ccxt HOT 7 CLOSED

fl0wo avatar fl0wo commented on June 16, 2024
Kraken createOrderWs

from ccxt.

Comments (7)

fl0wo avatar fl0wo commented on June 16, 2024 1

Hi, indeed it's very hard to reproduce.

I have seen this on avg 1 between 200-300 trades.
And for some reasons it more often when the "amount" is high (almost as if the order is not completed immediately it throws an error, and for smaller orders with lower size that get immediately closed not)

But I'm not sure, for now I just removed the createOrderWs usage, and will monitor this the following days.

I'm closing this as not an issue, will re-open it if possible, when I see again the same in case.

from ccxt.

carlosmiei avatar carlosmiei commented on June 16, 2024

Hello @fl0wo,

Technically yes it is possible, we might be misparsing an error message or something like that but it's very hard to tell without more information such as logs/ stacktrades/ steps to reproduce the issue.

from ccxt.

carlosmiei avatar carlosmiei commented on June 16, 2024

I tried to run something like this, but had no luck

    for i in range(0, 20):
        order = await exchange.create_order_ws('LTC/USDT', 'limit', 'buy', 0.1, 50)
        print('created order', order['id'])
        await exchange.cancel_order(order['id'], 'LTC/USDT')
        print('canceled order', order['id'])

from ccxt.

fl0wo avatar fl0wo commented on June 16, 2024

@carlosmiei Regarding your test code, I'd rather do something like:
(again, only on Kraken)

for ... 20 {
 
  try {
        await createOrderWs( LTC... )
  catch(e) {
       await createOrder( LTC... ) // non ws
  }

  await sleep 10sec

  // fetch new orders on LTC
  // if there are 2 new orders on LTC there's an issue (means we placed 2 times the same order)

}

from ccxt.

fl0wo avatar fl0wo commented on June 16, 2024

Ok I removed createOrderWs and now i dont see double trades no more.

I confirm createOrderWs errors are weird for Krakne

from ccxt.

carlosmiei avatar carlosmiei commented on June 16, 2024

@fl0wo Did you manage to get a verbose log?

from ccxt.

fl0wo avatar fl0wo commented on June 16, 2024

@carlosmiei not yet, I'll have a look and post them here if i find any

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.