Coder Social home page Coder Social logo

Websocket APIs about coinnect HOT 7 OPEN

ainestal avatar ainestal commented on May 29, 2024
Websocket APIs

from coinnect.

Comments (7)

hugues31 avatar hugues31 commented on May 29, 2024 2

Hi, I'm not currently available to see your project, but when I'm back at home I will take a look and see what we can do :)

from coinnect.

ainestal avatar ainestal commented on May 29, 2024 1

Agree about the complexity of synchronous vs asynchronous and about the amount of work. This will probably be a long discussion. I just wanted to address the issue for the future.

from coinnect.

crackcomm avatar crackcomm commented on May 29, 2024 1

I think I have completed the interface for websockets.

I made sure that implementation of new websocket protocols is as simple as possible.

Poloniex is stable and tested, for now there are no plans for other exchanges (you can see beginnings of bitfinex parser though).

If we would like to merge our work together please see protocol buffers messages in orca. RawOrder, RawTrade those are very easy to bring to coinnect.

from coinnect.

hugues31 avatar hugues31 commented on May 29, 2024

I already did a simple websocket connection with OKCoin exchange with the rust-websocket crate. So yes it's possible (and fairly simple).
The thing is, websocket does not fit well with the current synchronous implementation of the coinnect api. Maybe we can create a branch that adds a websocket module, but this will be a lot of work.

from coinnect.

crackcomm avatar crackcomm commented on May 29, 2024

I have implemented Poloniex websocket stream.

I would like to discuss moving some code out of orca to coinnect, it doesn't make much of a sense to maintain two clients. Orca is mainly designed to be a platform for building trading software and markets simulations. It has lmdb trades database and in-memory orderbook. It fetches trades history from markets, the parts which could also be moved to coinnect. Not the database although, I don't think coinnect is the right place for that.

Let me know what your thoughts are.

I would also like to hear your opinion about incorporating currency and markets packages into coinnect.

from coinnect.

Peltoche avatar Peltoche commented on May 29, 2024

Yop, for the asynchronous stuff, I have some work on it (See #9 ). Create a good implementation it's harder than what I expected first and I don't have much free time but soon :)

from coinnect.

crackcomm avatar crackcomm commented on May 29, 2024

I am not entirely happy with this interface, but it works.

Some things I do not like in my current implementation

  • ~commands should be possible to receive again on disconnect
  • some streams respect subscribe commands separate for Trade and OrderBook

I would want to see better Currency and CurrencyPair implementation in coinnect along with Order, Trade and OrderBook data structures to make it possible to migrate this code to coinnect.

from coinnect.

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.