bitget 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.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,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.bitget.com/api/v2/spot/market/tickers
|
|
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
|
+
- 3b0XGEymCkz9DVDcgFh/vMlgmMwwgiE0fI9Tyt/0AEs=
|
|
20
|
+
Access-Timestamp:
|
|
21
|
+
- '1747574753958'
|
|
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:55 GMT
|
|
35
|
+
Content-Type:
|
|
36
|
+
- application/json
|
|
37
|
+
Transfer-Encoding:
|
|
38
|
+
- chunked
|
|
39
|
+
Connection:
|
|
40
|
+
- keep-alive
|
|
41
|
+
Vary:
|
|
42
|
+
- Accept-Encoding
|
|
43
|
+
X-Mbx-Used-Remain-Limit:
|
|
44
|
+
- '19'
|
|
45
|
+
X-Xss-Protection:
|
|
46
|
+
- 1; mode=block
|
|
47
|
+
X-Content-Type-Options:
|
|
48
|
+
- nosniff
|
|
49
|
+
Access-Control-Allow-Origin:
|
|
50
|
+
- "*"
|
|
51
|
+
Access-Control-Allow-Methods:
|
|
52
|
+
- GET, POST, OPTIONS
|
|
53
|
+
Cf-Cache-Status:
|
|
54
|
+
- DYNAMIC
|
|
55
|
+
Set-Cookie:
|
|
56
|
+
- __cf_bm=wnT95RlCKwj.zC8ZXeNS4h4D0NtyT3nk_cyNGDqSh5E-1747574755-1.0.1.1-ft0nOSpwPNRB4B1iU_bcxhy3uF8ECeRpczRLEOuARZ0OYSB8qvQHCa1QTdGSl9DuzO4k5vgZ7j0PGdq4cZTr1l_7DljhjPmFto4cSDA8hoI;
|
|
57
|
+
path=/; expires=Sun, 18-May-25 13:55:55 GMT; domain=.api.bitget.com; HttpOnly;
|
|
58
|
+
Secure; SameSite=None
|
|
59
|
+
X-Frame-Options:
|
|
60
|
+
- SAMEORIGIN
|
|
61
|
+
Server:
|
|
62
|
+
- cloudflare
|
|
63
|
+
Cf-Ray:
|
|
64
|
+
- 941baeebf87766ab-AMS
|
|
65
|
+
body:
|
|
66
|
+
encoding: ASCII-8BIT
|
|
67
|
+
string: ''
|
|
68
|
+
recorded_at: Sun, 18 May 2025 13:25:55 GMT
|
|
69
|
+
recorded_with: VCR 6.3.1
|