Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Igor Kroitor



    We are migrating from this chatroom to our new discoord server here:

    Everyone is welcome to join! We will be happy to see you all there!

    This chatroom will be archived after a while.

    How to create BTC-PERP order by USD instead of BTC-PERP'amount
    Hiếu Đỗ
    Hi guys, I'm a beginner. Someone can show me a ways to take more than 1000 records in a times by calling fetchOHLVC function, please?
    Igor Kroitor
    @hieudo92 New discord chat: https://discord.gg/dhzSKYU
    Hiếu Đỗ

    @hieudo92 New discord chat: https://discord.gg/dhzSKYU

    Thank you! I have been joined with name is CoverLove

    Vincenzo Palazzo
    Hello Gius, I'm trying to work with the library for python, and I'm searching for the method that gives me the opportunity to retrieve the amount in EURO inside my account. In other words, I need to query how money is ready on the exchange to trade. Thanks
    Vincenzo Palazzo
    ops! I"m in a old place sorry
    Alan Asmis
    Hi folks! do you know if ccxt supports Binance smart chain trading ?
    Hey, I was wondering how one can get the error type when ccxt throws.
    do I have to manually check the error class ? It's a pain

    Like, do I have to do this ?

              if (e instanceof ccxt.InsufficientFunds) {
                error = 'InsufficientFunds';
              if (e instanceof ccxt.OrderNotFillable) {
                error = 'OrderNotFillable';


    Pavneet Singh
    Calling huobi to create Order is extremely slow compared to the Non-ccxt version
    calling from aws tokyo as well
    CCXT supports future open order ?
    Igor Kroitor
    Hi guys!
    This chat is not maintained anymore. New discord chat: https://discord.gg/dhzSKYU
    Please, join the new chat.
    @pavs94 see this issue: ccxt/ccxt#4341
    @Antonhansel in JS there's no other way of checking the error type, but you can also get a string name like so:
    try {
    } catch (e) {
        console.log (e.constructor.name)
    @yegito2_twitter yes, it does support futures orders to a certain extent, most of it is covered in the existing issues on github as well as the examples

    New discord chat: https://discord.gg/dhzSKYU
    Please, join the new chat.
    Is it possible to fetch just the most recent candle stick data ? or i have to call over a range at ever interval
    Hi! I found this board searching for a solution in resetting nonce to use same API key wits several instances of my python script. I know as stated https://github.com/ccxt/ccxt/wiki/Manual#authentication I shouldn't use same pair with several istances of my script , but for some reasons I have to. So I used the override nonce https://github.com/ccxt/ccxt/wiki/Manual#invalid-nonce but isn't work. Any suggestion?
    Hi guys a quick question, how is idempotency normally ensured for order placement? APIs such as Stripe offer idempotency keys which can be included in the header to ensure the same operation is not executed twice. I am trying to find a similar mechanism for crypto exchanges and not having any luck.
    I thought that ClOrdId could serve as such a key but e.g. Okex doesn't give a shit if you have just executed an order with the exact same ClOrdId and places another order when ClOrdId is repeated
    Oh I see, this chat is dead
    Igor Kroitor
    New discord chat: https://discord.gg/dhzSKYU
    Please, join the new chat.
    Miro Krsjak
    hello, I bought the pro version for tracking private orders and trades (kraken exchange, using python) and apparently this is not possible???
    Igor Kroitor
    @kyjak this chat is off
    New discord chat: https://discord.gg/dhzSKYU
    Please, join the new chat.
    1 reply
    Miro Krsjak
    hello there, not sure if this was already discussed, i get a task crash "task crashed Connection to wss://ws.kraken.com timed out due to a ping-pong keepalive missing on time"
    hi guys i'm new here, and i have a question. How can i get the mark price / current price of a symbol using ccxt in python?
    Rahul Soshte
    I want to be able to trade Bitclout using ccxt on Ascendex is it possible? How do I check if it is possible, I am using Python to make the bot.
    Igor Kroitor
    @invictus97k @rahul-soshte
    This chat is off
    New discord chat: https://discord.gg/dhzSKYU
    Please, join the new chat.
    did someone succeed to create a binance margin market order ?
    Hi there @kroitor and team
    hope all is well
    I have been getting these two types or errors:
    Unexpected Error Code: 429
    could you please confirm if and whether these relate to (LIMITS) and what those (LIMITS) are? I understood the limits are not enforced (especially since my app is still in testing / development mode)
    I am happy to increase my subscription if I'm given guarantees that it will solve my issue (I'm using data from 6 exchanges only)
    M S Vamsi

    InvalidNonce: binance {"code":-1021,"msg":"Timestamp for this request was 1000ms ahead of the server's time."}

    im getting this error when i am trying to fetch balance from my binance acc, what could be the issue?

    1 reply
    Harshad Kachhadiya
    how to pass quote currency in market sell order in huboipro exchange by ccxt.
    Hello there, can anyone suggest a cheap web hosting provider that can run PHP version of CCXT? On the host I am using, I am getting an error that GMP extension is not available. The hosting has the option to change to PHP v7.2 and v8.0 but it still doesn't work with those. They don't want to help me fix it.
    Rohit Behl
    hi, I am trying to download ohlcv data for leveraged coins. I use the call fetch_ohlcv but it doesnt return anything. I have checked the exchange.markets and can confirm that the symbol exists therein - any ideas?
    exchange.fetch_ohlcv(coin_pair, timeframe=timeframe, since=since_ms, limit=1000)
    Momna Dar
    hi, I facing an issue related to HitBTC, I am not able to withdraw the balance from main account using library of ccxt via api-key and api-secret-key from HitBTC can anyone help please?
    Momna Dar
    @Rubyforyou2_twitter, hi my telegram is @momnadar1
    Hi how to get open orderbook of a specific trader?

    Hi guys, I'm new here. I have a big problem with the ccxt api. I'm writing here because I think that it is not a lib error, instead, it could be my error or exchange error, so.... this is my problem:
    I'm using python and I wrote a sort of bot that calls something like 120 http requests per minute and in some particular cases, it could be 130/140 requests per minute. Anyway, the bot work, and it works great, but after 12h/24h it breaks for this error:

    Traceback (most recent call last):
    File "/home/ec2-user/.local/lib/python3.7/site-packages/ccxt/base/exchange.py", line 637, in fetch
    verify=self.verify and self.validateServerSsl
    File "/home/ec2-user/.local/lib/python3.7/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, send_kwargs)
    File "/home/ec2-user/.local/lib/python3.7/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request,
    File "/home/ec2-user/.local/lib/python3.7/site-packages/requests/adapters.py", line 532, in send
    raise ReadTimeout(e, request=request)
    requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.bybit.com', port=443): Read timed out. (read timeout=60)

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File "/home/ec2-user/.local/lib/python3.7/site-packages/flask/app.py", line 2077, in wsgi_app
    response = self.full_dispatch_request()
    File "/home/ec2-user/.local/lib/python3.7/site-packages/flask/app.py", line 1525, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/home/ec2-user/.local/lib/python3.7/site-packages/flask/app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
    File "/home/ec2-user/.local/lib/python3.7/site-packages/flask/app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(req.view_args)
    File "/home/ec2-user/echangeApiManager/controllers/futuresOpenedPositionsController.py", line 18, in futuresOpenedPositionsController
    positions = exchange.fetch_positions(symbols=[symbol])
    File "/home/ec2-user/.local/lib/python3.7/site-packages/ccxt/bybit.py", line 3278, in fetch_positions
    response = self.privateLinearGetPositionList(self.extend(request, params))
    File "/home/ec2-user/.local/lib/python3.7/site-packages/ccxt/base/exchange.py", line 496, in inner
    return entry(_self,
    File "/home/ec2-user/.local/lib/python3.7/site-packages/ccxt/base/exchange.py", line 547, in request
    return self.fetch2(path, api, method, params, headers, body, config, context)
    File "/home/ec2-user/.local/lib/python3.7/site-packages/ccxt/base/exchange.py", line 543, in fetch2
    return self.fetch(request['url'], request['method'], request['headers'], request['body'])
    File "/home/ec2-user/.local/lib/python3.7/site-packages/ccxt/base/exchange.py", line 660, in fetch
    raise RequestTimeout(details) from e
    ccxt.base.errors.RequestTimeout: bybit GET https://api.bybit.com/private/linear/position/list?api_key=XXXXXXXXX&recv_window=5000&symbol=LUNA2USDT&timestamp=16556140

    I tried different solutions:
    1- repeat the request after 1 second for 5 times
    2- increase the timeout

    1. repeat the request after x + 1 second after x time of retry with a maximum retry of 5

    All of that doesn't work. Can someone explain to me why this error?

    Wayne Chiu
    wondering anyone knows how to use custom fetch if I want to use bitget exchange api that is yet implement?