Git Product home page Git Product logo

Comments (2)

semashkinvg avatar semashkinvg commented on May 25, 2024

hi @GitteryCoder,
I think the question you raised is quite important and it's definitely worth investigating it carefully. It's crucial not just to know if these are bugs or not, but also to add some description of the API to this repository. I know that handling order book changes is a key point in the most of the trading strategies, so I will come back to you soon. All the exchanges provide order book updates with a different way, so, I think it's important to describe what's the best way to handle order book using Bitmex API

Thanks,

from bitmex.net.

semashkinvg avatar semashkinvg commented on May 25, 2024

HI @GitteryCoder,
See the answers below,

  1. To provide for the developers better way to handle all this action types, I wrapped the result DTO into BitmexSocketDataMessage . In addition, I added examples (check out the app) and a short description how to handle order book L2.

  2. "Discard Partial action" - not always, for instance, Partial action brings full depth snapshot of the order book within L2 subscription (2100 rows for XBTUSD). So, I would recommend to you here to make a decision case by case

  3. "If I subscribe to orderBook10, all I get are zero entries. Why?" - that happened because you used the wrong model, it should have been OrderBookSocketDto, but within the last commit, I renamed the class to make naming a bit more explicit and now it's OrderBook10Dto.
    To be even more specific and avoid bugs like yours, I added BitmetSocketSubscriptions. Please use it when you create a subscription request to be sure that you specify the appropriate model for the subscription.

from bitmex.net.

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.