Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    athenawisdoms
    @athenawisdoms
    @kroitor Why was an infinite loop used to get new orderbook updates instead of Nodejs event emitters/listeners?
    const ccxtpro = require ('ccxt.pro');
    (async () => {
        const exchange = new ccxtpro.binance ({ enableRateLimit: true })
        while (true) {
            const orderbook = await exchange.watchOrderBook ('ETH/BTC')
        }
    }) ()
    Igor Kroitor
    @kroitor
    @athenawisdoms in short, it's because using direct control allows better codestyle, more readable and architecturally superior code compared to using EventEmitter and callbacks. The latter is considered an outdated approach nowadays, because it requires inversion of control (people's brains usually don't think in inverted mode). In ES6+ it is recommended to design with async generators instead. CCXT Pro tends to go with the modern approach, and it is designed for the async syntax. Under the hood, we still have to use inverted control flow sometimes, because of the dependencies and ws libs that can't do otherwise. So it kinda supports both ways. But recommends and encourages direct control flow.
    Igor Kroitor
    @kroitor
    The same is true not only for JS/ES6, but for Python 3 async code as well
    @athenawisdoms with async style you don't have to use infinite loops at all, it was just shown as a very basic usage example
    Modern ES6+ syntax allows you to combine and split the execution into parallel execution pathways with direct flow, and then merge them back when you want. You can group them, prioritize them, and what not.
    So, there's really no hard requirements on loops or whatever is driving your logic.
    Igor Kroitor
    @kroitor
    So, if you want, say, 3 parallel execution pathways each running 7-11 steps sequentially, and another one running 3 steps periodically – there's no problem to write it out with direct async syntax. You would go crazy trying to manage that with events, event emitters and callbacks.
    Hope that answers your question )
    Igor Kroitor
    @kroitor
    One more thing to add: with promises you can easily convert from direct async style to inverted event style, back and forth
    athenawisdoms
    @athenawisdoms
    @kroitor Thank you for your explanation :)
    TradePlan
    @TradeplanIO_twitter
    hi @kroitor any update on how to sign up for CCXT pro ? the last thing i cant find is https://github.com/ccxt/ccxt/issues/56#issuecomment-527194069 which says its close but thats it.
    Igor Kroitor
    @kroitor
    @TradeplanIO_twitter hey) check this out: https://github.com/ccxt/ccxt/issues/6332#issuecomment-586626802
    chiqianguai
    @chiqianguai
    so many ppl here, surprise
    I have a question about binance future trades, how to create order ? I tried binance.create_order(), but something is wrong. I also tried binance.fapiPrivatePostOrder(), also failed.
    chiqianguai
    @chiqianguai
    solved, I use fapiPrivatePostOrder
    Igor Kroitor
    @kroitor

    @chiqianguai see here:

    Just add the defaultType to options in constructor params )

    Zaizai
    @zsyh
    Will ccxt.pro release on time tomorrow? And the doc website? Thank you!
    Igor Kroitor
    @kroitor
    @zsyh yep
    Igor Kroitor
    @kroitor
    CCXT Pro is finally released )
    Anders E. Andersen
    @andersea
    What? impossible..
    Igor Kroitor
    @kroitor
    )
    Chris Lin
    @kulisu
    Hi, we have bought Beginner tier of ccxt.pro
    wonder to know definition of 3 exchanges in pricing
    it's meaning that we can just use ONLY 3 exchanges (?)
    Igor Kroitor
    @kroitor

    @kulisu Hi! Thank you for using CCXT Pro ) Please see the explanation of the licensing terms from this comment and down below:

    https://github.com/ccxt/ccxt/issues/6543#issuecomment-593166188

    Let me know if you have further questions after that )

    Chris Lin
    @kulisu
    thanks for quick reply and explanation !
    Igor Kroitor
    @kroitor
    @kulisu you're welcome )
    Gautham-GM
    @Gautham-GM
    Hi i'm new to ccxt
    Igor Kroitor
    @kroitor
    @Gautham-GM hi! ) We recommend to start from here: https://github.com/ccxt/ccxt/wiki/Manual
    Gautham-GM
    @Gautham-GM
    I just purchased the ccxt pro.. And i doesn't know how to pass the api in ccxt pro and get the balance info... Kindly anyone help me to use fix this.
    can i paste my code and my error info here....
    Igor Kroitor
    @kroitor
    @Gautham-GM see my dm to you )
    Alexis Hernandez
    @AlexITC

    Hey guys, as most of you are involved in cryptocurrency bots, I want to invite you to build bots for our Lightning Decentralized Exchange (a DEX over the Lightning Network).

    We are close to launch it, and we are interested to get feedback from bot makers who are willing to try our API.

    Please ping me privately if you are interested to not spam this channel.

    Some useful links:

    biax
    @biax
    hi, what lib is recommended for graphing ccxt? i want to graph historical data as candlestick charts
    biax
    @biax
    (for javascript)
    hivemall
    @hivemall
    when will bittrex have market orders :( ?
    Igor Kroitor
    @kroitor
    @hivemall we will add that within several days
    @biax hi! d3.js, amCharts, HighCharts, TradingView charts – google any of those and follow from there
    hivemall
    @hivemall
    @kroitor that would be great, bina/huobi/kraken have it already implemented eg; should be breeze to extend
    Igor Kroitor
    @kroitor
    @hivemall more about it here: ccxt/ccxt#6611
    Axl Blake
    @AxlBlake_twitter
    Hi, just bought beginner license of ccxt.pro. Just two issues I have faced with, first one was(on clear created python venv)
    from ccxt.async_support.okcoincny import okcoincny                        # noqa: F401
    ModuleNotFoundError: No module named 'ccxt.async_support.okcoincny'
    Igor Kroitor
    @kroitor
    @AxlBlake_twitter hi, will fix shortly, we are migrating OKEX atm, sorry for the inconvenience
    Axl Blake
    @AxlBlake_twitter
    after commenting this line out it started working great, but not on private methods I've got
    ccxt.base.errors.AuthenticationError: binance userDataStream endpoint requires apiKey credential