bitget.rb 0.9.0 → 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 +18 -0
- data/README.md +3 -0
- data/bitget.rb.gemspec +1 -1
- data/lib/Bitget/V2/Client.rb +6 -1
- data/lib/Bitget/VERSION.rb +1 -1
- data/test/V2/Client_test.rb +12 -0
- 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,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/fills?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
|
+
- tjPr8y4+BzbChItX9+Cj1DCFH3vbL8dr/hW5f7zc3y4=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574842438'
|
|
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:27:23 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Transfer-Encoding:
|
|
38
|
+
- chunked
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '9'
|
|
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=Z9dAUBGOVxq4BWA8pEe2BXdklwniOZB3arUS_2tyrCM-1747574843-1.0.1.1-OTGDPPE7WogzNHniUG_4g9Wn4wSlcDnxLiEql49HlmMtvC2Vh_LOMWTMsSCEeq3t77yxsEG74LWR_BOkxOcke5MxXS9X639fnNylY_nUpEE;
|
|
55
|
+
path=/; expires=Sun, 18-May-25 13:57:23 GMT; domain=.api.bitget.com; HttpOnly;
|
|
56
|
+
Secure; SameSite=None
|
|
57
|
+
X-Frame-Options:
|
|
58
|
+
- SAMEORIGIN
|
|
59
|
+
Server:
|
|
60
|
+
- cloudflare
|
|
61
|
+
Cf-Ray:
|
|
62
|
+
- 941bb11519e7b90c-AMS
|
|
63
|
+
body:
|
|
64
|
+
encoding: ASCII-8BIT
|
|
65
|
+
string: '
|
|
66
|
+
{
|
|
67
|
+
"code": "00000",
|
|
68
|
+
"msg": "success",
|
|
69
|
+
"requestTime": 1695865274510,
|
|
70
|
+
"data": [
|
|
71
|
+
{
|
|
72
|
+
"userId": "**********",
|
|
73
|
+
"symbol": "BTCUSDT",
|
|
74
|
+
"orderId": "12345678910",
|
|
75
|
+
"tradeId": "12345678910",
|
|
76
|
+
"orderType": "market",
|
|
77
|
+
"side": "buy",
|
|
78
|
+
"priceAvg": "13000",
|
|
79
|
+
"size": "0.0007",
|
|
80
|
+
"amount": "9.1",
|
|
81
|
+
"feeDetail": {
|
|
82
|
+
"deduction": "no",
|
|
83
|
+
"feeCoin": "BTC",
|
|
84
|
+
"totalDeductionFee": "",
|
|
85
|
+
"totalFee": "-0.0000007"
|
|
86
|
+
},
|
|
87
|
+
"tradeScope": "taker",
|
|
88
|
+
"cTime": "1695865232579",
|
|
89
|
+
"uTime": "1695865233027"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
'
|
|
94
|
+
recorded_at: Sun, 18 May 2025 13:27:24 GMT
|
|
95
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/history-orders?symbol=INVALID
|
|
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
|
+
- cjt19br3TQy4g8a7jVFS3zIUe4BKfvtPSq98oX2RPw0=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574813587'
|
|
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:55 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=kQ.JFCG8y1wr_QBv5uo2zgB39bZOhTqsnyprblVclQ8-1747574815-1.0.1.1-FuM4jh1nDhUryG76.oN5QNRN17CETWd0dn9eDjzIwJMz_Loc5rRyEHTBJsICO9jNZqRw.Zg3dk8N_zkki9HqAzsTObHCJN7geTogSLHVFJE;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:56:55 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941bb060bc96d655-AMS
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: ''
|
|
62
|
+
recorded_at: Sun, 18 May 2025 13:26:55 GMT
|
|
63
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/history-orders?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
|
+
- O/U6GHlcz+4hFYHARx0aIRBhqd6WNtO+4yeeunce0UU=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574719398'
|
|
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:20 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=COCwd1woEOCzFR6fyrkHgY0QoBamtjLpQOj9q8Di9KU-1747574720-1.0.1.1-9wxdn7FocLXZEY_9vjnlMpcpcI1u3UQHVW2TX6wRsJFvxlREbfCC.e9XG0rVxSPwvY5wIkVYiSfwlVHwsYq8hwfpJt2F_Q4ydOzdpMfCuI4;
|
|
55
|
+
path=/; expires=Sun, 18-May-25 13:55:20 GMT; domain=.api.bitget.com; HttpOnly;
|
|
56
|
+
Secure; SameSite=None
|
|
57
|
+
X-Frame-Options:
|
|
58
|
+
- SAMEORIGIN
|
|
59
|
+
Server:
|
|
60
|
+
- cloudflare
|
|
61
|
+
Cf-Ray:
|
|
62
|
+
- 941bae13fb956645-AMS
|
|
63
|
+
body:
|
|
64
|
+
encoding: ASCII-8BIT
|
|
65
|
+
string: '
|
|
66
|
+
{
|
|
67
|
+
"code": "00000",
|
|
68
|
+
"message": "success",
|
|
69
|
+
"requestTime": 1747574720767,
|
|
70
|
+
"data": [
|
|
71
|
+
{
|
|
72
|
+
"userId": "*********",
|
|
73
|
+
"symbol": "ETHUSDT",
|
|
74
|
+
"orderId": "*****************************",
|
|
75
|
+
"clientOid": "*****************************",
|
|
76
|
+
"price": "0",
|
|
77
|
+
"size": "20.0000000000000000",
|
|
78
|
+
"orderType": "market",
|
|
79
|
+
"side": "buy",
|
|
80
|
+
"status": "filled",
|
|
81
|
+
"priceAvg": "1598.1000000000000000",
|
|
82
|
+
"baseVolume": "0.0125000000000000",
|
|
83
|
+
"quoteVolume": "19.9762500000000000",
|
|
84
|
+
"enterPointSource": "WEB",
|
|
85
|
+
"feeDetail": "{\"newFees\":{\"c\":0,\"d\":0,\"deduction\":false,\"r\":-0.112079256,\"t\":-0.112079256,\"totalDeductionFee\":0},\"USDT\":{\"deduction\":false,\"feeCoinCode\":\"ETH\",\"totalDeductionFee\":0,\"totalFee\":-0.1120792560000000}}",
|
|
86
|
+
"orderSource": "market",
|
|
87
|
+
"cTime": "1698736299656",
|
|
88
|
+
"uTime": "1698736300363",
|
|
89
|
+
"tpslType": "normal",
|
|
90
|
+
"cancelReason": "",
|
|
91
|
+
"triggerPrice": null
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
'
|
|
96
|
+
recorded_at: Sun, 18 May 2025 13:25:20 GMT
|
|
97
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/history-plan-order?endTime=1747755739537&startTime=1747754739537&symbol=INVALID
|
|
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
|
+
- QvnoP7/5yML/QOmBo9IhkKoclXIQGLtJgzjCkCETqFM=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574827974'
|
|
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:27:09 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '95'
|
|
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=Q9njiVVLbIKdxaQf6DeSp2dwV8UlE6c7s3NsRSgSSm0-1747574829-1.0.1.1-VQfPpVK3QqRITpyph9InBmfkpWae.saBg92dWudhbKoaBcFlS18nFfU7snmvEz5_TCRJARUPEg__Mm15bmVsz1fl84r8pwR6KxcMcxyz5BE;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:57:09 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941bb0ba8cfe1e4a-FRA
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: ''
|
|
62
|
+
recorded_at: Sun, 18 May 2025 13:27:09 GMT
|
|
63
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/history-plan-order?endTime=1747755739537&startTime=1747754739537&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
|
+
- PsX+Ea4UyhXbpOZUqQ7jwaFA2ahAOwrzD1cuzOMUpdc=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574832764'
|
|
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:27:14 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '95'
|
|
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=G33Bn7X3h378CTnsInjq179M4MGE4UbDFkXv8Fapbd8-1747574834-1.0.1.1-VyLOZOOIXoszL0MoUlob0TwqjD2BJMhlQdWZ2rhl_5F9oJ4Kn.BPTHclaeAnLrFfjuHt1kVlLnzxX1K3j6jdWqDvcNhywA42iaz7ATDp9A8;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:57:14 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941bb0d89ebba02e-FRA
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: '{"code": "00000","msg": "success","requestTime": 1668134581005,"data": {"nextFlag": false,"idLessThan": "1","orderList": [{"orderId": "121211212122","clientOid": "121211212122","symbol": "TRXUSDT","size": "151","executePrice": "0.041572","triggerPrice": "0.041572","status": "not_trigger","orderType": "limit","side": "buy","planType":"amount","triggerType": "fill_price","enterPointSource": "API","uTime": "1668134576563","cTime": "1668134576563"}]}}'
|
|
62
|
+
recorded_at: Sun, 18 May 2025 13:27:14 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/modify-plan-order
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"orderId":"INVALID","triggerPrice":"31000","executePrice":"31000","size":"0.002"}'
|
|
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
|
+
- 3Y1AF8QZ/2VFhMTXwqole7+U0FamQPvzVzpIC0SSW5g=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574789464'
|
|
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:30 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '101'
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '9'
|
|
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=qU7kqgGi_PqCiGwC07yAGwQoLnUaHrTBm4RETriwLTQ-1747574790-1.0.1.1-4WzbUHYsnQay8BLzOrlHkHlWkHv5i0Gkmsn5BdKGARdwWvEpjScb547iensa2n37onFTnN366bAx04PBkDmGauTqeyZ83lyzjnyhp1s6nyY;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:56:30 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941bafc9f9541c99-AMS
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: ''
|
|
62
|
+
recorded_at: Sun, 18 May 2025 13:26:31 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/modify-plan-order
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"orderId":"123456","triggerPrice":"31000","executePrice":"31000","size":"0.002"}'
|
|
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
|
+
- VNGRcyzMzl1CncJ3xmQmmKd2aJPt9RPjNdr83CmiBQk=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574727211'
|
|
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:28 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '100'
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
X-Mbx-Used-Remain-Limit:
|
|
42
|
+
- '9'
|
|
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=zeYNXJkCJIVrqLnDWm5bLO98vZSPClNciTQe0yUY1XA-1747574728-1.0.1.1-UdzlJfe4psT6iVBQvTU2Ey5cxy0Diouj0TMEpJNWAsgt_kLrPGfOQAESmkSs0yKmNbihstVEbZzKwCh1fSGFCV72OlHi3NVDGTxYPh_.wH4;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:55:28 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941bae44a91165c5-FRA
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: '{"code": "00000","msg": "success","requestTime": 1668134576535,"data": {"orderId": "121211212122","clientOid": "121211212122"}}'
|
|
62
|
+
recorded_at: Sun, 18 May 2025 13:25:28 GMT
|
|
63
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/orderInfo?orderId=INVALID
|
|
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
|
+
- ybcxmQGVjA6lztDQakDuwya1cHdcJ2bj0j1rz+T3t5o=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574749197'
|
|
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:50 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Transfer-Encoding:
|
|
38
|
+
- chunked
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
Access-Control-Allow-Origin:
|
|
42
|
+
- "*"
|
|
43
|
+
Access-Control-Allow-Methods:
|
|
44
|
+
- GET, POST, OPTIONS
|
|
45
|
+
Cf-Cache-Status:
|
|
46
|
+
- DYNAMIC
|
|
47
|
+
Set-Cookie:
|
|
48
|
+
- __cf_bm=di6OIyQarEhiSFyIhmnI9jsI3MEzcf2SHOV5zYq01M4-1747574750-1.0.1.1-xWJXXbu7qgGByqoXf5IOPdHrLi7BPjO.Hq9Lw86iucvgHMaR7AGGBWtVX_WbmPdJVIgz.wCY64FdLZf.P1s.8mniHQN7v3fONrnw8DK1vKY;
|
|
49
|
+
path=/; expires=Sun, 18-May-25 13:55:50 GMT; domain=.api.bitget.com; HttpOnly;
|
|
50
|
+
Secure; SameSite=None
|
|
51
|
+
X-Frame-Options:
|
|
52
|
+
- SAMEORIGIN
|
|
53
|
+
Server:
|
|
54
|
+
- cloudflare
|
|
55
|
+
Cf-Ray:
|
|
56
|
+
- 941baece3da86d07-AMS
|
|
57
|
+
body:
|
|
58
|
+
encoding: ASCII-8BIT
|
|
59
|
+
string: ''
|
|
60
|
+
recorded_at: Sun, 18 May 2025 13:25:50 GMT
|
|
61
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/trade/orderInfo?orderId=123456
|
|
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
|
+
- Y7wyI8TpNNR8O/f0yfRvc0O7gYC7rCyEoARwbra4RJU=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574783074'
|
|
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:24 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Transfer-Encoding:
|
|
38
|
+
- chunked
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
Access-Control-Allow-Origin:
|
|
42
|
+
- "*"
|
|
43
|
+
Access-Control-Allow-Methods:
|
|
44
|
+
- GET, POST, OPTIONS
|
|
45
|
+
Cf-Cache-Status:
|
|
46
|
+
- DYNAMIC
|
|
47
|
+
Set-Cookie:
|
|
48
|
+
- __cf_bm=toHt8eq55evq4e6xWcc5Jj2GF4c6V3ON21pvMXdx9g4-1747574784-1.0.1.1-fMMtGw7uvJGCEClLlQac3GjZ2an_C1J7K1x.bC4ZqUH9Fyp9nDYtLf_vI3w5fNNy9QPVXO7960eftObyGbt1EboZBwFIK4sMnA.7Hc0i3yk;
|
|
49
|
+
path=/; expires=Sun, 18-May-25 13:56:24 GMT; domain=.api.bitget.com; HttpOnly;
|
|
50
|
+
Secure; SameSite=None
|
|
51
|
+
X-Frame-Options:
|
|
52
|
+
- SAMEORIGIN
|
|
53
|
+
Server:
|
|
54
|
+
- cloudflare
|
|
55
|
+
Cf-Ray:
|
|
56
|
+
- 941bafa1ebd618c7-FRA
|
|
57
|
+
body:
|
|
58
|
+
encoding: ASCII-8BIT
|
|
59
|
+
string: '{"code": "00000","msg": "success","requestTime": 1695865476577,"data": [{"userId": "**********","symbol": "BTCUSDT","orderId": "121211212122","clientOid": "121211212122","price": "0","size": "10.0000000000000000","orderType": "market","side": "buy","status": "filled","priceAvg": "13000.0000000000000000","baseVolume": "0.0007000000000000","quoteVolume": "9.1000000000000000","enterPointSource": "API","feeDetail": "{\"BGB\":{\"deduction\":true,\"feeCoinCode\":\"BGB\",\"totalDeductionFee\":-0.0041,\"totalFee\":-0.0041},\"newFees\":{\"c\":0,\"d\":0,\"deduction\":false,\"r\":-0.112079256,\"t\":-0.112079256,\"totalDeductionFee\":0}}","orderSource": "market","cancelReason": "","cTime": "1695865232127","uTime": "1695865233051"}]}'
|
|
60
|
+
recorded_at: Sun, 18 May 2025 13:26:24 GMT
|
|
61
|
+
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/place-order
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"symbol":"INVALID","side":"buy","orderType":"limit","force":"normal","price":"30000","size":"0.001","clientOid":null,"triggerPrice":null,"tpslType":null,"requestTime":null,"receiveWindow":null,"stpMode":null,"presetTakeProfitPrice":null,"executeTakeProfitPrice":null,"presetStopLossPrice":null,"executeStopLossPrice":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
|
+
- 6TJJzrUcF4habCW4ZBb387cmR14hQPlgvFwQJboyO+4=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574779862'
|
|
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:21 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=vK8kEyaxzj1NLuqNZzCB7OxSErsAg8xK.jJifdWgW8A-1747574781-1.0.1.1-sRmLO8bke2ojje.U8hsyQU8_BY83dEiFO96MkF05si0eEHiOgRBIl3oYZvBQsSbRrhw4p7M8FyDU5S9nQT1rk90c9qaA5QERisYbF71Z8FQ;
|
|
51
|
+
path=/; expires=Sun, 18-May-25 13:56:21 GMT; domain=.api.bitget.com; HttpOnly;
|
|
52
|
+
Secure; SameSite=None
|
|
53
|
+
X-Frame-Options:
|
|
54
|
+
- SAMEORIGIN
|
|
55
|
+
Server:
|
|
56
|
+
- cloudflare
|
|
57
|
+
Cf-Ray:
|
|
58
|
+
- 941baf8de80139d4-FRA
|
|
59
|
+
body:
|
|
60
|
+
encoding: UTF-8
|
|
61
|
+
string: ''
|
|
62
|
+
recorded_at: Sun, 18 May 2025 13:26:21 GMT
|
|
63
|
+
recorded_with: VCR 6.3.1
|