Skip to content

Commit

Permalink
feat(websocket): Remove srcCurrency, dstCurrency from message of priv…
Browse files Browse the repository at this point in the history
…ate:trades and replace market with market_symbol
  • Loading branch information
amirreza888 committed Nov 24, 2024
1 parent 30b6d43 commit 6e1e63f
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions source/includes/_websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,8 @@ sub.subscribe();
```json
{
"srcCurrency": "Bitcoin",
"dstCurrency": "",
"timestamp": "2024-11-23T11:31:27.833332+00:00",
"market": "BTC-RLS",
"symbol": "BTCRLS",
"price": "66683959340",
"amount": "0.000404",
"total": "26940319.57336",
Expand All @@ -482,7 +480,7 @@ sub.subscribe();
"push": {
"channel": "private:trades#1987577cdf7c7422dee369e188e276ee",
"pub": {
"data": "{\"srcCurrency\":\"Bitcoin\",\"dstCurrency\":\"\", \"timestamp\":\"2024-11-23T11:31:27.833332+00:00\",\"market\":\"BTC-RLS\", \"price\":\"66683959340\",\"amount\":\"0.000404\",\"total\":\"26940319.57336\",\"type\":\"sell\",\"fee\":\"47150.7989334\",\"id\":12942226,\"orderId\":520305923}",
"data": "{\"timestamp\":\"2024-11-23T11:31:27.833332+00:00\",\"symbol\":\"BTCRLS\", \"price\":\"66683959340\",\"amount\":\"0.000404\",\"total\":\"26940319.57336\",\"type\":\"sell\",\"fee\":\"47150.7989334\",\"id\":12942226,\"orderId\":520305923}",
"offset": 34575
}
}
Expand All @@ -491,16 +489,14 @@ sub.subscribe();

### پارامتر پیام

| فیلد | نوع | توضیحات | نمونه |
|-------------|----------|--------------------|------------------------------------------|
| id | int | شناسه‌ی معامله | 12942226 |
| orderId | int | شناسه‌ی سفارش | 520305923 |
| srcCurrency | string | رمزارز مبدا معامله | `Bitcoin` یا `Ethereum` یا `TRON` یا ... |
| dstCurrency | string | ارز مقصد معامله | `` یا `Tether` |
| market | string | نماد بازار معامله | `BTC-RLS` |
| timestamp | string | زمان انجام معامله | `2024-11-23T11:31:27.833332+00:00` |
| type | string | نوع خرید یا فروش | `buy` یا `sell` |
| price | monetary | قیمت انجام معامله | `66683959340` |
| amount | monetary | مقدار معامله شده | `0.000404` |
| total | monetary | قیمت کل معامله | `26940319.57336` |
| fee | monetary | کارمزد معامله | `47150.7989334` |
| فیلد | نوع | توضیحات | نمونه |
|-----------|----------|--------------------|------------------------------------------|
| id | int | شناسه‌ی معامله | 12942226 |
| orderId | int | شناسه‌ی سفارش | 520305923 |
| symbol | string | نماد بازار معامله | `BTCRLS` |
| timestamp | string | زمان انجام معامله | `2024-11-23T11:31:27.833332+00:00` |
| type | string | نوع خرید یا فروش | `buy` یا `sell` |
| price | monetary | قیمت انجام معامله | `66683959340` |
| amount | monetary | مقدار معامله شده | `0.000404` |
| total | monetary | قیمت کل معامله | `26940319.57336` |
| fee | monetary | کارمزد معامله | `47150.7989334` |

0 comments on commit 6e1e63f

Please sign in to comment.