Code Monkey home page Code Monkey logo

coinbase-client-websocket's Introduction

Hi there ๐Ÿ‘‹

Let's hack something...

๐Ÿ’ป ๐Ÿ“ˆ โ‚ฟ ๐Ÿ†“ โšช

mk logo bitcoin beer

HitCount ViewCount

coinbase-client-websocket's People

Contributors

marfusios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

coinbase-client-websocket's Issues

ChannelSubscriptionType.Level2 Error received, message: Failed to subscribe

When I try to subscribe to the order book, the client returns an error.
private static async Task SendSubscriptionRequests(CoinbaseWebsocketClient client) { var subscription = new SubscribeRequest { ProductIds = [ //"BTC-EUR", "BTC-USD" ], Channels = new[] { //ChannelSubscriptionType.Heartbeat, ChannelSubscriptionType.Ticker, ChannelSubscriptionType.Matches, ChannelSubscriptionType.Level2 } }; client.Send(subscription); }
Error received, message: Failed to subscribe
In the case of other subscriptions (Ticker, Matches), everything works fine.

More exmples

Do you have any .net examples of the usage of this websocket? I want to be able to display live prices in a table, so that it will update the price of the ticker in another object which is listed in the table and I am having a hard time figuring out how I would do this for .net. In your example: you use an exitEvent and it makes it so that the subscription is only active for 30 seconds, and i want the subscription to be active for the entire life of the website connection, basically I just dont know what I am doing with websockets yet and could really use some other resources for learning opportunities and the stuff in your examples seems to be for bitmex or something

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.