bitget.rb 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +9 -0
- data/bitget.rb.gemspec +1 -1
- data/lib/Bitget/VERSION.rb +1 -1
- data/test/fixtures/vcr_cassettes/v2/spot/account/assets-when_an_error_occurs.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/assets.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/bills-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/bills.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/bleradaf-info.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/deduct-info-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/deduct-info.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/info-when_an_error_occurs.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/info.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/sub-main-trans-record-when_an_error_occurs.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/sub-main-trans-record.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/subaccount-assets-when_an_error_occurs.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/subaccount-assets.yml +102 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/switch-deduct-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/switch-deduct.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/transferRecords-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/account/transferRecords.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/candles-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/candles.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/fills-history-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/fills-history.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/fills-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/fills.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/history-candles-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/history-candles.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/merge-depth-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/merge-depth.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/orderbook-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/orderbook.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_an_error_occurs.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_symbol_is_not_supplied.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_symbol_is_supplied.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/vip-fee-rate-when_an_error_occurs.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/market/vip-fee-rate.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_an_error_occurs.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_coin_is_not_supplied.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_coin_is_supplied.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_error_occurs.yml +64 -0
- data/test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_an_error_occurs.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_symbol_is_not_supplied.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_symbol_is_supplied.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-order.yml +84 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-plan-order-when_an_error_occurs.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-plan-order.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-replace-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-replace-order.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-orders-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-orders.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-order.yml +73 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-plan-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-plan-order.yml +72 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-replace-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-replace-order.yml +68 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-symbol-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-symbol-order.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/current-plan-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/current-plan-order.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/fills-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/fills.yml +95 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/history-orders-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/history-orders.yml +97 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/history-plan-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/history-plan-order.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/modify-plan-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/modify-plan-order.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/orderInfo-when_an_error_occurs.yml +61 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/orderInfo.yml +61 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/place-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/place-order.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/place-plan-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/place-plan-order.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/plan-sub-order-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/plan-sub-order.yml +75 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/unfilled-orders-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/trade/unfilled-orders.yml +97 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/cancel-withdrawal-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/cancel-withdrawal.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-address-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-address.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-records-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-records.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/modify-deposit-account-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/modify-deposit-account.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-address-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-address.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-records-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-records.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-transfer-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-transfer.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-coin-info-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-coin-info.yml +69 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-records-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-records.yml +67 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-when_an_error_occurs.yml +63 -0
- data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal.yml +73 -0
- data/test/gemspec_test.rb +4 -0
- metadata +100 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/public/symbols?symbol=BTCUSDT
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
Access-Key:
|
|
17
|
+
- "<API_KEY>"
|
|
18
|
+
Access-Sign:
|
|
19
|
+
- mgrgyMwVZ1axw0UzdV1PSWicnibFOQt+CoZZTTCYvmo=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574742890'
|
|
22
|
+
Access-Passphrase:
|
|
23
|
+
- "<API_PASSPHRASE>"
|
|
24
|
+
Content-Type:
|
|
25
|
+
- application/json
|
|
26
|
+
X-Channel-Api-Code:
|
|
27
|
+
- spot
|
|
28
|
+
response:
|
|
29
|
+
status:
|
|
30
|
+
code: 200
|
|
31
|
+
message: OK
|
|
32
|
+
headers:
|
|
33
|
+
Date:
|
|
34
|
+
- Sun, 18 May 2025 13:25:44 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Transfer-Encoding:
|
|
38
|
+
- chunked
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '19'
|
|
43
|
+
X-Xss-Protection:
|
|
44
|
+
- 1; mode=block
|
|
45
|
+
X-Content-Type-Options:
|
|
46
|
+
- nosniff
|
|
47
|
+
Access-Control-Allow-Origin:
|
|
48
|
+
- "*"
|
|
49
|
+
Access-Control-Allow-Methods:
|
|
50
|
+
- GET, POST, OPTIONS
|
|
51
|
+
Cf-Cache-Status:
|
|
52
|
+
- DYNAMIC
|
|
53
|
+
Set-Cookie:
|
|
54
|
+
- __cf_bm=OFBcXTu10KYyJLzPt1hGJpgCqQxtjB_DajrdbbktQ78-1747574744-1.0.1.1-VtTvn4LizI4GsEwrPpR0gqSLkTCB0LsPaH2d_xZCXgAIG6pmb3Rp2jdKvB5q0b7QtnlI1fYlS6KTzaCJgQz.hAZwQDQICzY0zpQ6TLZKZK0;
|
|
55
|
+
path=/; expires=Sun, 18-May-25 13:55:44 GMT; domain=.api.bitget.com; HttpOnly;
|
|
56
|
+
Secure; SameSite=None
|
|
57
|
+
X-Frame-Options:
|
|
58
|
+
- SAMEORIGIN
|
|
59
|
+
Server:
|
|
60
|
+
- cloudflare
|
|
61
|
+
Cf-Ray:
|
|
62
|
+
- 941baea6aa4ad233-FRA
|
|
63
|
+
body:
|
|
64
|
+
encoding: ASCII-8BIT
|
|
65
|
+
string: '{"code":"00000","msg":"success","requestTime":1747574744237,"data":[{"symbol":"BTCUSDT","baseCoin":"BTC","quoteCoin":"USDT","minTradeAmount":"0","maxTradeAmount":"900000000000000000000","takerFeeRate":"0.002","makerFeeRate":"0.002","pricePrecision":"2","quantityPrecision":"6","quotePrecision":"8","status":"online","minTradeUSDT":"1","buyLimitPriceRatio":"0.05","sellLimitPriceRatio":"0.05","areaSymbol":"no","orderQuantity":"200","openTime":"1532454360000","offTime":""}]}'
|
|
66
|
+
recorded_at: Sun, 18 May 2025 13:25:44 GMT
|
|
67
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/batch-cancel-order
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"symbol":"INVALID","orderIds":["123456","123457"],"clientOrderIds":null,"requestTime":null,"receiveWindow":null}'
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
Access-Key:
|
|
17
|
+
- "<API_KEY>"
|
|
18
|
+
Access-Sign:
|
|
19
|
+
- ebObnDTtER0/Guv1CmpWwrylQZ3Trf2C4MUgxfROyEQ=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574716247'
|
|
22
|
+
Access-Passphrase:
|
|
23
|
+
- "<API_PASSPHRASE>"
|
|
24
|
+
Content-Type:
|
|
25
|
+
- application/json
|
|
26
|
+
X-Channel-Api-Code:
|
|
27
|
+
- spot
|
|
28
|
+
response:
|
|
29
|
+
status:
|
|
30
|
+
code: 418
|
|
31
|
+
message: I'm a teapot
|
|
32
|
+
headers:
|
|
33
|
+
Date:
|
|
34
|
+
- Sun, 18 May 2025 13:25:17 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '122'
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '19'
|
|
43
|
+
Access-Control-Allow-Origin:
|
|
44
|
+
- "*"
|
|
45
|
+
Access-Control-Allow-Methods:
|
|
46
|
+
- GET, POST, OPTIONS
|
|
47
|
+
Cf-Cache-Status:
|
|
48
|
+
- DYNAMIC
|
|
49
|
+
Set-Cookie:
|
|
50
|
+
- __cf_bm=K.EstotSPy8tvIjWACYI42dBm_WX7z8DJT3eFSTjG90-1747574717-1.0.1.1-8UaHLClyghAxCyX62TDJJTrPZHeRvsIdVcS2X3B.y_zEInz1Ngu3YZlRj7AH1a1zvCp6qsbu8j1Vcs9D9JbHJT9LrKbM7naINxIMEaE8eRs;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:55:17 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941bae004be56566-AMS
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: ''
|
|
62
|
+
recorded_at: Sun, 18 May 2025 13:25:17 GMT
|
|
63
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/batch-cancel-order
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"symbol":"BTCUSDT","orderIds":["123456","123457"],"clientOrderIds":null,"requestTime":null,"receiveWindow":null}'
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
Access-Key:
|
|
17
|
+
- "<API_KEY>"
|
|
18
|
+
Access-Sign:
|
|
19
|
+
- 4+LzKL7HlIleShkSdgryJehGGP3wMpZg/gWC93IJ3Vw=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574771409'
|
|
22
|
+
Access-Passphrase:
|
|
23
|
+
- "<API_PASSPHRASE>"
|
|
24
|
+
Content-Type:
|
|
25
|
+
- application/json
|
|
26
|
+
X-Channel-Api-Code:
|
|
27
|
+
- spot
|
|
28
|
+
response:
|
|
29
|
+
status:
|
|
30
|
+
code: 200
|
|
31
|
+
message: OK
|
|
32
|
+
headers:
|
|
33
|
+
Date:
|
|
34
|
+
- Sun, 18 May 2025 13:26:13 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '122'
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '19'
|
|
43
|
+
Access-Control-Allow-Origin:
|
|
44
|
+
- "*"
|
|
45
|
+
Access-Control-Allow-Methods:
|
|
46
|
+
- GET, POST, OPTIONS
|
|
47
|
+
Cf-Cache-Status:
|
|
48
|
+
- DYNAMIC
|
|
49
|
+
Set-Cookie:
|
|
50
|
+
- __cf_bm=mP.Z.Zo1jNIB2F_L05_GcE5iFTrijr8eP.MEcX6zgik-1747574773-1.0.1.1-U5I6myjt8McWYHA6iRvPEzsqV.9oowKdnIWNPvdNnfw3VCw7Yd4CBQRzKZo6QAmuPc39Z9u5gsXgJkbLc4dqdVE1HIQnm9wGXvVelVQNGZE;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:56:13 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941baf5f4b77a00e-AMS
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: '
|
|
62
|
+
{
|
|
63
|
+
"code": "00000",
|
|
64
|
+
"message": "success",
|
|
65
|
+
"requestTime": 1695808949356,
|
|
66
|
+
"data": {
|
|
67
|
+
"successList": [
|
|
68
|
+
{
|
|
69
|
+
"orderId": "121211212122",
|
|
70
|
+
"clientOid": "121211212122"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"failureList": [
|
|
74
|
+
{
|
|
75
|
+
"orderId": "121211212122",
|
|
76
|
+
"clientOid": "xxx001",
|
|
77
|
+
"errorMsg": "duplicate clientOrderId"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
'
|
|
83
|
+
recorded_at: Sun, 18 May 2025 13:26:14 GMT
|
|
84
|
+
recorded_with: VCR 6.3.1
|
data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-plan-order-when_an_error_occurs.yml
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/batch-cancel-plan-order
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"symbol":"INVALID","orderIds":["123456","123457"]}'
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
Access-Key:
|
|
17
|
+
- "<API_KEY>"
|
|
18
|
+
Access-Sign:
|
|
19
|
+
- msQ7EfjleUnpqVC8Eb9iYv0KS1VO5He+IBbdUMNoSZ0=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747577604265'
|
|
22
|
+
Access-Passphrase:
|
|
23
|
+
- "<API_PASSPHRASE>"
|
|
24
|
+
Content-Type:
|
|
25
|
+
- application/json
|
|
26
|
+
X-Channel-Api-Code:
|
|
27
|
+
- spot
|
|
28
|
+
response:
|
|
29
|
+
status:
|
|
30
|
+
code: 418
|
|
31
|
+
message: I'm a teapot
|
|
32
|
+
headers:
|
|
33
|
+
Date:
|
|
34
|
+
- Sun, 18 May 2025 14:13:26 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Transfer-Encoding:
|
|
38
|
+
- chunked
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '19'
|
|
43
|
+
X-Xss-Protection:
|
|
44
|
+
- 1; mode=block
|
|
45
|
+
X-Content-Type-Options:
|
|
46
|
+
- nosniff
|
|
47
|
+
Access-Control-Allow-Origin:
|
|
48
|
+
- "*"
|
|
49
|
+
Access-Control-Allow-Methods:
|
|
50
|
+
- GET, POST, OPTIONS
|
|
51
|
+
Cf-Cache-Status:
|
|
52
|
+
- DYNAMIC
|
|
53
|
+
Set-Cookie:
|
|
54
|
+
- __cf_bm=4rCh5E54FsFTY3e3XNj4g3iKo6lTXhLP45dOAsisVAc-1747577606-1.0.1.1-DgVueA2Hn_AyOzBL24FvEGqBrwObShwwKzzPoRWZN8IC9Asm4qUdNIiE.pocwjsdt4AkaGNGZAWVs6evtIhf35ilY119K7aBiUU_UkAnqNA;
|
|
55
|
+
path=/; expires=Sun, 18-May-25 14:43:26 GMT; domain=.api.bitget.com; HttpOnly;
|
|
56
|
+
Secure; SameSite=None
|
|
57
|
+
X-Frame-Options:
|
|
58
|
+
- SAMEORIGIN
|
|
59
|
+
Server:
|
|
60
|
+
- cloudflare
|
|
61
|
+
Cf-Ray:
|
|
62
|
+
- 941bf485ab7ae22e-MRS
|
|
63
|
+
body:
|
|
64
|
+
encoding: ASCII-8BIT
|
|
65
|
+
string: ''
|
|
66
|
+
recorded_at: Sun, 18 May 2025 14:13:26 GMT
|
|
67
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/batch-cancel-plan-order
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"symbol":"BTCUSDT","orderIds":["123456","123457"]}'
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
Access-Key:
|
|
17
|
+
- "<API_KEY>"
|
|
18
|
+
Access-Sign:
|
|
19
|
+
- NHV7H43GQXFAKa3BGSpJB41Uvmwfyezv5lp/YUkqyrk=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747575709474'
|
|
22
|
+
Access-Passphrase:
|
|
23
|
+
- "<API_PASSPHRASE>"
|
|
24
|
+
Content-Type:
|
|
25
|
+
- application/json
|
|
26
|
+
X-Channel-Api-Code:
|
|
27
|
+
- spot
|
|
28
|
+
response:
|
|
29
|
+
status:
|
|
30
|
+
code: 200
|
|
31
|
+
message: OK
|
|
32
|
+
headers:
|
|
33
|
+
Date:
|
|
34
|
+
- Sun, 18 May 2025 13:41:51 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Transfer-Encoding:
|
|
38
|
+
- chunked
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '19'
|
|
43
|
+
X-Xss-Protection:
|
|
44
|
+
- 1; mode=block
|
|
45
|
+
X-Content-Type-Options:
|
|
46
|
+
- nosniff
|
|
47
|
+
Access-Control-Allow-Origin:
|
|
48
|
+
- "*"
|
|
49
|
+
Access-Control-Allow-Methods:
|
|
50
|
+
- GET, POST, OPTIONS
|
|
51
|
+
Cf-Cache-Status:
|
|
52
|
+
- DYNAMIC
|
|
53
|
+
Set-Cookie:
|
|
54
|
+
- __cf_bm=GsQVT2fhl.VPpc3hPraYfLuwNGd1ybjl4vNzOzmi8TY-1747575711-1.0.1.1-y.gXtczcU7qTUP6x9LEhOqKIwpkujn_hfyRIciBn4YVefaz8zpRaSfK_6.IcfGE2jwqJoFikdXSXHOiF_hlUn6cZh1QWUY3zuY1rwLltzjU;
|
|
55
|
+
path=/; expires=Sun, 18-May-25 14:11:51 GMT; domain=.api.bitget.com; HttpOnly;
|
|
56
|
+
Secure; SameSite=None
|
|
57
|
+
X-Frame-Options:
|
|
58
|
+
- SAMEORIGIN
|
|
59
|
+
Server:
|
|
60
|
+
- cloudflare
|
|
61
|
+
Cf-Ray:
|
|
62
|
+
- 941bc642acc79ffa-AMS
|
|
63
|
+
body:
|
|
64
|
+
encoding: ASCII-8BIT
|
|
65
|
+
string: '{"code":"00000","msg":"success","requestTime":1747575711282,"data":{"successList":null,"failureList":null}}'
|
|
66
|
+
recorded_at: Sun, 18 May 2025 13:41:51 GMT
|
|
67
|
+
recorded_with: VCR 6.3.1
|
data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-replace-order-when_an_error_occurs.yml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/batch-cancel-replace-order
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"orders":[{"symbol":"INVALID"}]}'
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
Access-Key:
|
|
17
|
+
- "<API_KEY>"
|
|
18
|
+
Access-Sign:
|
|
19
|
+
- iF6WdBK+8piVNxQ9YeaXUhQN5DOx5pozbLp0fl+tHAA=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574781471'
|
|
22
|
+
Access-Passphrase:
|
|
23
|
+
- "<API_PASSPHRASE>"
|
|
24
|
+
Content-Type:
|
|
25
|
+
- application/json
|
|
26
|
+
X-Channel-Api-Code:
|
|
27
|
+
- spot
|
|
28
|
+
response:
|
|
29
|
+
status:
|
|
30
|
+
code: 418
|
|
31
|
+
message: I'm a teapot
|
|
32
|
+
headers:
|
|
33
|
+
Date:
|
|
34
|
+
- Sun, 18 May 2025 13:26:22 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '105'
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '4'
|
|
43
|
+
Access-Control-Allow-Origin:
|
|
44
|
+
- "*"
|
|
45
|
+
Access-Control-Allow-Methods:
|
|
46
|
+
- GET, POST, OPTIONS
|
|
47
|
+
Cf-Cache-Status:
|
|
48
|
+
- DYNAMIC
|
|
49
|
+
Set-Cookie:
|
|
50
|
+
- __cf_bm=drqghXoi6vus1t2mWWfxxxL70DPtuiPOJqNaxvQYfIY-1747574782-1.0.1.1-13Vlsgzq0k6P.Q9.wIl35i_e3aAl2WzN43XXrfNwaxk7Bot.jH_feT7BlKkOhVqug5oCze_V0TE6r4JURnkbOc8e3X50eyZsGy6aByE7aEM;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:56:22 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941baf97fef56631-AMS
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: ''
|
|
62
|
+
recorded_at: Sun, 18 May 2025 13:26:23 GMT
|
|
63
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/batch-cancel-replace-order
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"orders":[{"symbol":"BTCUSDT","orderId":"123456","price":"31000","size":"0.001"},{"symbol":"ETHUSDT","orderId":"123457","price":"2000","size":"0.01"}]}'
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
Access-Key:
|
|
17
|
+
- "<API_KEY>"
|
|
18
|
+
Access-Sign:
|
|
19
|
+
- ZYXp2fAmTMA0NAKGxTBao/Be3s+MhOyy/q83TEN89fc=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574802341'
|
|
22
|
+
Access-Passphrase:
|
|
23
|
+
- "<API_PASSPHRASE>"
|
|
24
|
+
Content-Type:
|
|
25
|
+
- application/json
|
|
26
|
+
X-Channel-Api-Code:
|
|
27
|
+
- spot
|
|
28
|
+
response:
|
|
29
|
+
status:
|
|
30
|
+
code: 200
|
|
31
|
+
message: OK
|
|
32
|
+
headers:
|
|
33
|
+
Date:
|
|
34
|
+
- Sun, 18 May 2025 13:26:43 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '105'
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '4'
|
|
43
|
+
Access-Control-Allow-Origin:
|
|
44
|
+
- "*"
|
|
45
|
+
Access-Control-Allow-Methods:
|
|
46
|
+
- GET, POST, OPTIONS
|
|
47
|
+
Cf-Cache-Status:
|
|
48
|
+
- DYNAMIC
|
|
49
|
+
Set-Cookie:
|
|
50
|
+
- __cf_bm=CPLT4no3Nc2d_3BLkhDDdiyuo.GSxhO2RyZ9NJjHlKY-1747574803-1.0.1.1-7YrR7Z.09ND2FMMAn96xjqo4IuVwrSeajXJTmsWtB7V0PnvAHagCn6M046yXXA3QaHN8wo6sll6MTV8O7Io0D_8XAmlCpec269Dlm07HT6I;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:56:43 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941bb01a6a493441-AMS
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: '{"code": "00000","msg": "success","requestTime": 1725341809524,"data": [{"orderId": "xxxxxxxxxxxxxxxxxxxxxx","clientOid": null,"success": "failure","msg": "xxxxxx"}]}'
|
|
62
|
+
recorded_at: Sun, 18 May 2025 13:26:43 GMT
|
|
63
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/batch-orders
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"orders":[{"symbol":"INVALID"}],"requestTime":null,"receiveWindow":null}'
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
Access-Key:
|
|
17
|
+
- "<API_KEY>"
|
|
18
|
+
Access-Sign:
|
|
19
|
+
- tRbJDhAqtrrdervKixrevIgKEAFmL2/len0DNnTZQPk=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574774005'
|
|
22
|
+
Access-Passphrase:
|
|
23
|
+
- "<API_PASSPHRASE>"
|
|
24
|
+
Content-Type:
|
|
25
|
+
- application/json
|
|
26
|
+
X-Channel-Api-Code:
|
|
27
|
+
- spot
|
|
28
|
+
response:
|
|
29
|
+
status:
|
|
30
|
+
code: 418
|
|
31
|
+
message: I'm a teapot
|
|
32
|
+
headers:
|
|
33
|
+
Date:
|
|
34
|
+
- Sun, 18 May 2025 13:26:18 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '97'
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '19'
|
|
43
|
+
Access-Control-Allow-Origin:
|
|
44
|
+
- "*"
|
|
45
|
+
Access-Control-Allow-Methods:
|
|
46
|
+
- GET, POST, OPTIONS
|
|
47
|
+
Cf-Cache-Status:
|
|
48
|
+
- DYNAMIC
|
|
49
|
+
Set-Cookie:
|
|
50
|
+
- __cf_bm=Wy5Tsvba3LiBV1r9Cl3O63Dfg801jhIaY.EqRxoPTYM-1747574778-1.0.1.1-jiR.9.Hkuzu1pLjGJj4..DYm6tcmolKr9RkOVTxHQti0F24j5Bygi9WrYP_g9R1rj5cpEm6yok5ynVwop_67EWgR3ZJRw6wTaYyXpEbjJE4;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:56:18 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941baf7a0f9c970d-AMS
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: ''
|
|
62
|
+
recorded_at: Sun, 18 May 2025 13:26:18 GMT
|
|
63
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/batch-orders
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"batchMode":"multiple","orderList":[{"symbol":"BTCUSDT","side":"buy","orderType":"limit","force":"gtc","price":"30000","size":"0.001"},{"symbol":"ETHUSDT","side":"buy","orderType":"limit","force":"gtc","price":"2000","size":"0.01"}]}'
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
Access-Key:
|
|
17
|
+
- "<API_KEY>"
|
|
18
|
+
Access-Sign:
|
|
19
|
+
- 7tm7N0xkVFFWwnYaTro/SZ5XDf/5KmK70WL9uL+bPyU=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747753723776'
|
|
22
|
+
Access-Passphrase:
|
|
23
|
+
- "<API_PASSPHRASE>"
|
|
24
|
+
Content-Type:
|
|
25
|
+
- application/json
|
|
26
|
+
X-Channel-Api-Code:
|
|
27
|
+
- spot
|
|
28
|
+
response:
|
|
29
|
+
status:
|
|
30
|
+
code: 200
|
|
31
|
+
message: OK
|
|
32
|
+
headers:
|
|
33
|
+
Date:
|
|
34
|
+
- Tue, 20 May 2025 15:08:46 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Transfer-Encoding:
|
|
38
|
+
- chunked
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '19'
|
|
43
|
+
X-Xss-Protection:
|
|
44
|
+
- 1; mode=block
|
|
45
|
+
X-Content-Type-Options:
|
|
46
|
+
- nosniff
|
|
47
|
+
Access-Control-Allow-Origin:
|
|
48
|
+
- "*"
|
|
49
|
+
Access-Control-Allow-Methods:
|
|
50
|
+
- GET, POST, OPTIONS
|
|
51
|
+
Cf-Cache-Status:
|
|
52
|
+
- DYNAMIC
|
|
53
|
+
Set-Cookie:
|
|
54
|
+
- __cf_bm=SsG3VttANXXXHsoUFNEYLiI5FEsU8FLkHEJg4ym0q80-1747753726-1.0.1.1-TXXAUyyPGWtWiaC4d0Urh9AzaPUkGs_FZvWCnZXW2Qib8AfXPUjjOgNomJupHxNK.aqEp7TeANrPRP1G8lxV3Gat7u1PaDUQDvUhbaxroBc;
|
|
55
|
+
path=/; expires=Tue, 20-May-25 15:38:46 GMT; domain=.api.bitget.com; HttpOnly;
|
|
56
|
+
Secure; SameSite=None
|
|
57
|
+
X-Frame-Options:
|
|
58
|
+
- SAMEORIGIN
|
|
59
|
+
Server:
|
|
60
|
+
- cloudflare
|
|
61
|
+
Cf-Ray:
|
|
62
|
+
- 942cc055d860b902-AMS
|
|
63
|
+
body:
|
|
64
|
+
encoding: ASCII-8BIT
|
|
65
|
+
string: '{"code":"00000","msg":"success","requestTime":1747753726516,"data":{"successList":[{"orderId":"1308739474185175042","clientOid":"0f1c92ec-fd9a-4970-a64d-000d7e96f6a8"},{"orderId":"1308739474189369350","clientOid":"39601186-02f2-4a33-aa90-5da1b6259127"}],"failureList":[]}}'
|
|
66
|
+
recorded_at: Tue, 20 May 2025 15:08:45 GMT
|
|
67
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/cancel-order
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"orderId":"123456","symbol":"INVALID"}'
|
|
9
|
+
headers:
|
|
10
|
+
Accept-Encoding:
|
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- Ruby
|
|
16
|
+
Access-Key:
|
|
17
|
+
- "<API_KEY>"
|
|
18
|
+
Access-Sign:
|
|
19
|
+
- 0KrDgby4lkgBwEpd3hOA/ytI9rQPqObX+t1zw+Sw970=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747750361748'
|
|
22
|
+
Access-Passphrase:
|
|
23
|
+
- "<API_PASSPHRASE>"
|
|
24
|
+
Content-Type:
|
|
25
|
+
- application/json
|
|
26
|
+
X-Channel-Api-Code:
|
|
27
|
+
- spot
|
|
28
|
+
response:
|
|
29
|
+
status:
|
|
30
|
+
code: 418
|
|
31
|
+
message: I'm a teapot
|
|
32
|
+
headers:
|
|
33
|
+
Date:
|
|
34
|
+
- Tue, 20 May 2025 14:12:43 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '97'
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '19'
|
|
43
|
+
Access-Control-Allow-Origin:
|
|
44
|
+
- "*"
|
|
45
|
+
Access-Control-Allow-Methods:
|
|
46
|
+
- GET, POST, OPTIONS
|
|
47
|
+
Cf-Cache-Status:
|
|
48
|
+
- DYNAMIC
|
|
49
|
+
Set-Cookie:
|
|
50
|
+
- __cf_bm=eYnyK2Bj9LUGeZfTqfhjCFmA8tgH6pPAcNd0j6IBP1E-1747750363-1.0.1.1-kUA0Op7hMqyEB9KcTZ1uQNYahHyCRNKcPS30PtYwmkKuCCiXxw4yEph7gUeemDPpikmZ0ON8Z269X.je8HBBjpxxg2OH1nY1r7dU9Qdmqoo;
|
|
51
|
+
path=/; expires=Tue, 20-May-25 14:42:43 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 942c6e3b1b5aed93-MXP
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: ''
|
|
62
|
+
recorded_at: Tue, 20 May 2025 14:12:43 GMT
|
|
63
|
+
recorded_with: VCR 6.3.1
|