Skip to content

Commit

Permalink
chore(): updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Cro committed Sep 24, 2024
1 parent c3813d4 commit 1e38c09
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,16 +310,15 @@ client.subscribe('heartbeats', 'advTradeMarketData');
client.subscribe('futures_balance_summary', 'advTradeUserData');
client.subscribe('user', 'advTradeUserData');


/**
* Or send a more structured object with parameters, e.g. if parameters are required
*/
const tickerSubscribeRequst: WsTopicRequest = {
/**
* Or send a more structured object with parameters, e.g. if parameters are required
*/
const tickerSubscribeRequst = {
topic: 'ticker',
/**
* Anything in the payload will be merged into the subscribe "request",
* allowing you to send misc parameters supported by the exchange (such as `product_ids: string[]`)
*/
* Anything in the payload will be merged into the subscribe "request",
* allowing you to send misc parameters supported by the exchange (such as `product_ids: string[]`)
*/
payload: {
product_ids: ['ETH-USD', 'BTC-USD'],
},
Expand Down

0 comments on commit 1e38c09

Please sign in to comment.