Comments (2)
Hi, thanks for submitting an issue.
It looks like you are using an incorrect id
for your market. CCXWS markets use the results of a call to CCXT fetchMarket
. These results have an id
property that is the remote exchange's identifier. CCXT does the work of normalizing the base and quote symbols across all exchanges.
Kraken is a good example. On that exchange, Bitcoin is XXBT and the BTC/USD market looks like:
{
id: 'XXBTZUSD',
symbol: 'BTC/USD',
base: 'BTC',
quote: 'USD',
baseId: 'XXBT',
quoteId: 'ZUSD',
}
id
is the remote identifier the exchange is expectedbase
is the normalized base symbolquote
is the normalized quote symbolsymbol
is the concatenation of normalized base and quote symbolsbaseId
is the base symbol used by the exchangequoteId
is the quote symbol used by the exchange
It's not obvious that this is the case with Bibox because most markets are already using a symbol that is normalized.
For example, BTC/USDT on Bibox looks like
{
id: 'BTC_USDT',
symbol: 'BTC/USDT',
base: 'BTC',
quote: 'USDT',
baseId: 'BTC',
quoteId: 'USDT',
}
Hopefully that answers you question.
from ccxws.
I see, I usually pass in the symbol when calling the ccxt APIs. Will close this and handle accordingly...
from ccxws.
Related Issues (20)
- Invalid "main" entry / Missing index.js file HOT 2
- BitfinexClient not emit data for future contracts
- Mass subscription to candles HOT 1
- Do we really need id for candles
- How to interpret timestampMs property
- Cexio client fix of "ticker" subscription + implementation of "l2update" HOT 1
- [Question] How to set network proxy?
- [Bug] KuCoin: Cannot read properties of null (reading 'map')
- [BUG] Gate.io orderbook feed goes out of sync
- Add _sendPing to Digifinex
- Add retryTimeoutMs parameter for SmartWss to BasicClient and Clients that inherit it
- OKEX v5 need to add HOT 1
- Questions on how subscriptions are constructed
- Update README.md
- Bithumb: problem with timezone in tickers and trades
- Status of project HOT 5
- Question: Is there a way to subscribe to multiple markets in the same call? HOT 3
- Is this a correct way of implementing ccws in Node.js?
- kucoin market issue HOT 1
- candlePeriod as a parameter HOT 1
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 ccxws.