Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Levi Roberts
    @bugs181
    Perfect. That will be ideal for startups and projects like what we’re doing.
    Igor Kroitor
    @kroitor
    Awesome ) In general we wouldn't want to have any tracking or intercepting mechanism that would affect your direct communication with the exchanges. Because direct communication is one of the key points of CCXT/CCXT Pro. You would not want to use this lib, if all traffic went through our "standalone server" of some sort.
    Levi Roberts
    @bugs181
    Indeed. That was a privacy and connectivity concern of our team as well. Our objective is to be fair to the open source world (CCXT pro, more specifically), however startups usually have an initial negative cash flow problem and we didn’t want to also run into that issue. We also need to be careful legally speaking because of government regulations. If/when the project takes off, we will most definitely be contributing financially and most likely PRs.
    Starting off, we plan to pay toward whichever license plan is 20% of our profits. Just so we can hit that break even point with all additional costs.
    Igor Kroitor
    @kroitor
    @bugs181 right, totally understood
    John Zay
    @jzay
    Can you monitor liquidations on Bitmex with CCXT Pro?
    Not sure how to find this out in the documentation. Is everything that the Bitmex websocket provides supported?
    Igor Kroitor
    @kroitor
    @jzay not yet, but we are going to unify margin/positional/leveraged trading in Q2, this is one of our topmost priorities for the coming future:
    @jzay at this time it supports the public feed and the balance
    @jzay you can see which methods are supported here:
    John Zay
    @jzay
    Thanks @kroitor
    Igor Kroitor
    @kroitor

    ATTENTION! ALARM! ALARM! )

    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.

    hivemall
    @hivemall
    what is binance or in general 'id': vs 'order': in fetch_my_trades?
    which one is used to cancel
    Igor Kroitor
    @kroitor
    @hivemall in fetch_my_trades, the id is the trade id, and the order is the order id.
    you can cancel the order by order id, but you cannot cancel a trade by a trade id.
    the difference is explained in the Manual here: https://github.com/ccxt/ccxt/wiki/Manual#how-orders-are-related-to-trades
    Please join discord here: https://discord.gg/dhzSKYU
    This room will not be supported further.
    hivemall
    @hivemall
    aww. discord is for kids only, its slow loading and bad navigate now overveiw, i like it here
    mortezae
    @mortezae
    Hello, I instantiated a socks proxy agent using socks-proxy-agent on nodejs, then pass it as 'agent' option when initializing ccxt. I get this error: The "options.agent" property must be one of type Agent-like Object, undefined, or false. Received type object
    I searched ccxt github issues but found no solutions.
    mortezae
    @mortezae
    Also I tried options.proxies: {http: 'socks5://127.0.0.1:9050', https: 'socks5://127.0.0.1:9050'}
    Anyway it seems that doesn't work as nothing is serving on that port now and ccxt works and loads markets!
    Igor Kroitor
    @kroitor

    @mortezae hi!
    This chat has moved here: https://discord.gg/dhzSKYU

    The .agent and .proxies should not be a part of exchange-specific .options.

    So, instead of setting exchange.options.agent or exchange.options.proxies...

    ... you want to set exchange.agent (which must be a instance of the node's Agent class), or you want to set exchange.proxies.

    I suggest to move this discussion to discord

    New discord chat: https://discord.gg/dhzSKYU
    mortezae
    @mortezae
    OK I continue on Discord, Thanks. Feel free to remove it from here.
    Fcl69
    @Fcl69
    Hey gentlemen...
    It could be a long shot, but nevertheless....
    Let's say I want to buy 1 BTC. As fast as possible and as close to the current (momentum) price as possible.
    Can someone point me the way to a good strategy/algorithm, which could help me to accomplish it with minimum losses?
    Again, I don't want to place an order for a limit price and sit there for hours, hoping it'd fill up. And I don't want to buy such a high volume (1BTC) for the market price, as my average price would drop down significantly.
    What I'm looking for is some sort of a proven algorithm:
    1. Set limit order for 0.1% less of the price
    2. If it filled up only 10% of the order over 1-3-5m, cancel order and create a new one with a limit price 'current price less 0.2%'
    3. Repeat 1-2 until fully executed.
      ....something like that.
      I'd appreciate if someone could share their knowledge here. And/or show me where I could find more info.
    Hamed Gholami
    @hamiGH
    Hi, how can I place "take profit order" on bitmex by using ccxt?
    Fcl69
    @Fcl69

    Hey guys, can someone point me on what I'm doing wrong here?... I'm trying to create margin stop_loss_limit order on binance:

    exch = ccxt.binance({ "apiKey":"'', "secret":""
    "options": {
    "defaultType": "margin",}
    })
    exch.create_order(symbol='BTC/USDT', type='limit', side='sell', amount=0.01, price=9800, >params={'stopPrice':9900, 'orderType':'STOP_LOSS_LIMIT'})

    Igor Kroitor
    @kroitor

    @Fcl69


    ATTENTION! ALARM! ALARM! )

    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.

    Mingzhao
    @mingzhaocn
    How to create BTC-PERP order by USD instead of BTC-PERP'amount
    Hiếu Đỗ
    @hieudo92
    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
    @kroitor
    @hieudo92 New discord chat: https://discord.gg/dhzSKYU
    Hiếu Đỗ
    @hieudo92

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

    Thank you! I have been joined with name is CoverLove

    Vincenzo Palazzo
    @vincenzopalazzo
    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
    @vincenzopalazzo
    ops! I"m in a old place sorry
    Alan Asmis
    @AsmisAlan
    Hi folks! do you know if ccxt supports Binance smart chain trading ?
    AntonHansel
    @Antonhansel
    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';
              }

    etc...

    Pavneet Singh
    @pavs94
    Calling huobi to create Order is extremely slow compared to the Non-ccxt version
    calling from aws tokyo as well
    yegito
    @yegito2_twitter
    CCXT supports future open order ?
    Igor Kroitor
    @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.
    zenitsuisgod
    @zenitsuisgod
    Is it possible to fetch just the most recent candle stick data ? or i have to call over a range at ever interval
    please
    Edge-Rider
    @Edge-Rider
    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?
    Vladimir
    @kovalevvlad
    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.