Comments (14)
In my mind, ability to choose level (1-3) of sync order book would be the great feature.
from coinbase-pro-node.
@pranksterN1 No exact date, but it shouldn't be much later than the first week of September.
from coinbase-pro-node.
@pranksterN1 Level 3 books are way more complex than level 2 books. While I agree that this would be generally a nice feature, the goal of this to both improve the performance and reduce the complexity of this library.
Level 1 might be a nice future addition, but as the level 2 book already contains that information having that probably suffices.
from coinbase-pro-node.
Is this about the Orderbook Sync (Websocket feed)? If yes:
According to the API documentation, level 2 only returns the top 50 bids and asks. How is the client supposed to keep the full order book in sync, without knowing the state of the remaining bids and asks?
As far as I can tell from the docs, level 2 cannot be configured for the Websocket feed. (However, https://www.gdax.com does seem to provide a channels
parameter though it is undocumented so I deem it unfit.)
It'd be great to use level 2, instead of level 3, to keep a synchronized full order book, but with the current API I'm unsure how.
from coinbase-pro-node.
The website already retrieves full level 2 snapshots via the feed. We are currently finishing up the flow for subscribing to channels, as soon as that's done the docs will be updated accordingly.
from coinbase-pro-node.
@fb55,
Do you have an approximate date for completing that work ?
from coinbase-pro-node.
We finally rolled this out yesterday. Docs are live at https://docs.gdax.com/#websocket-feed — this hasn't been officially announced yet (we will do so next week), but for now feel free to experiment with it.
The trading toolkit we published this week already uses the new channels and I'd like to switch this library to something similar.
from coinbase-pro-node.
@fb55, Thank you for your answers.
I faced the problem with the new ws feed API.
Could you clarify why the first message I received doesn't have side, time, trade_id, last_size fields?
Or should I skip all messages until "subscriptions" message will be received?
ws messages [click here to expand]
request:
{
"type":"subscribe",
"product_ids":[
"BTC-USD"
],
"channels":[
"ticker"
]
}
received data:
{
"type":"ticker",
"sequence":4077559280,
"product_id":"BTC-USD",
"price":"3595.00000000",
"open_24h":"3869.02000000",
"volume_24h":"16938.74579088",
"low_24h":"3595.00000000",
"high_24h":"3875.54000000",
"volume_30d":"470252.79261935",
"best_bid":"3592.84",
"best_ask":"3595.04"
}
{
"type":"subscriptions",
"channels":[
{
"name":"ticker",
"product_ids":[
"BTC-USD"
]
}
]
}
{
"type":"ticker",
"sequence":4077560540,
"product_id":"BTC-USD",
"price":"3598.65000000",
"open_24h":"3869.02000000",
"volume_24h":"16938.74579365",
"low_24h":"3598.65000000",
"high_24h":"3875.54000000",
"volume_30d":"470252.79262212",
"best_bid":"3592.9",
"best_ask":"3598.65",
"side":"buy",
"time":"2017-09-22T13:29:42.602000Z",
"trade_id":21221450,
"last_size":"0.00000277"
}
from coinbase-pro-node.
The first message is intended to give you an instant impression of the current market conditions, analogous to the snapshot message you get when you subscribe to the level 2 channel. Definitely something we need to document.
from coinbase-pro-node.
Was this ever rolled out? I see in the orderbook_sync lib that there is a "bookLevel = 3" argument but changing it to level 2 results in assertion errors.
from coinbase-pro-node.
Was this ever rolled out? I see in the orderbook_sync lib that there is a "bookLevel = 3" argument but changing it to level 2 results in assertion errors.
@Arombalski The main GDAX Websocket API added level 2 support to the websocket feed, but no, this has not been implemented in gdax-node yet. OrderbookSync
still relies on level 3.
from coinbase-pro-node.
Hi,
I am using orderbookSync of gdax-node and I am facing same issue where orderbook data randomly becomes stale. Is there a timeline in gdax-node to integrate level2? Or if there is another way of keeping my orderbook updated (writing own logic to use level2 updates doesn't work either as mentioned above by few members)? Does gdax trading toolkit help with keeping orderbook in sync with level2 reliably?
from coinbase-pro-node.
Hello,
Is this done yet or planned for anytime soon?
from coinbase-pro-node.
Hi, we are closing out PRs + Issues as this project is being archived.
from coinbase-pro-node.
Related Issues (20)
- Charging? HOT 2
- Abnormal prices for EOSUSD market HOT 1
- Property 'getPaymentMethods' does not exist on type 'AuthenticatedClient' HOT 1
- Orderbook sync has invalid state with crossed orders. HOT 1
- publicClient.getTicker not working in Safari HOT 1
- User Channel Not Authenticating HOT 4
- Authenticated websocket fails due to timestamp serialization HOT 2
- specifying size when buying HOT 1
- Feature Request: Add Webhook Notifications to Coinbase Pro HOT 1
- Out of sync websocket order books HOT 1
- pageArgs Not Consistent With Header Response HOT 4
- How to buy a maximum with a euro amount? HOT 2
- placeOrder throws Internal server error HOT 2
- Does this library work with Coinbase Prime HOT 2
- New release HOT 1
- Invalid Signature HOT 1
- cancelOrders returning wrong data HOT 2
- withdrawCrypto funds getting stuck HOT 1
- [Q] Whats the difference between authedClient.placeOrder and authedClient.sell HOT 2
- Historic Data seems funky HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coinbase-pro-node.