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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +9 -0
  3. data/bitget.rb.gemspec +1 -1
  4. data/lib/Bitget/VERSION.rb +1 -1
  5. data/test/fixtures/vcr_cassettes/v2/spot/account/assets-when_an_error_occurs.yml +69 -0
  6. data/test/fixtures/vcr_cassettes/v2/spot/account/assets.yml +69 -0
  7. data/test/fixtures/vcr_cassettes/v2/spot/account/bills-when_an_error_occurs.yml +63 -0
  8. data/test/fixtures/vcr_cassettes/v2/spot/account/bills.yml +69 -0
  9. data/test/fixtures/vcr_cassettes/v2/spot/account/bleradaf-info.yml +67 -0
  10. data/test/fixtures/vcr_cassettes/v2/spot/account/deduct-info-when_an_error_occurs.yml +63 -0
  11. data/test/fixtures/vcr_cassettes/v2/spot/account/deduct-info.yml +67 -0
  12. data/test/fixtures/vcr_cassettes/v2/spot/account/info-when_an_error_occurs.yml +67 -0
  13. data/test/fixtures/vcr_cassettes/v2/spot/account/info.yml +67 -0
  14. data/test/fixtures/vcr_cassettes/v2/spot/account/sub-main-trans-record-when_an_error_occurs.yml +67 -0
  15. data/test/fixtures/vcr_cassettes/v2/spot/account/sub-main-trans-record.yml +67 -0
  16. data/test/fixtures/vcr_cassettes/v2/spot/account/subaccount-assets-when_an_error_occurs.yml +67 -0
  17. data/test/fixtures/vcr_cassettes/v2/spot/account/subaccount-assets.yml +102 -0
  18. data/test/fixtures/vcr_cassettes/v2/spot/account/switch-deduct-when_an_error_occurs.yml +63 -0
  19. data/test/fixtures/vcr_cassettes/v2/spot/account/switch-deduct.yml +69 -0
  20. data/test/fixtures/vcr_cassettes/v2/spot/account/transferRecords-when_an_error_occurs.yml +63 -0
  21. data/test/fixtures/vcr_cassettes/v2/spot/account/transferRecords.yml +63 -0
  22. data/test/fixtures/vcr_cassettes/v2/spot/market/candles-when_an_error_occurs.yml +63 -0
  23. data/test/fixtures/vcr_cassettes/v2/spot/market/candles.yml +69 -0
  24. data/test/fixtures/vcr_cassettes/v2/spot/market/fills-history-when_an_error_occurs.yml +63 -0
  25. data/test/fixtures/vcr_cassettes/v2/spot/market/fills-history.yml +69 -0
  26. data/test/fixtures/vcr_cassettes/v2/spot/market/fills-when_an_error_occurs.yml +63 -0
  27. data/test/fixtures/vcr_cassettes/v2/spot/market/fills.yml +69 -0
  28. data/test/fixtures/vcr_cassettes/v2/spot/market/history-candles-when_an_error_occurs.yml +63 -0
  29. data/test/fixtures/vcr_cassettes/v2/spot/market/history-candles.yml +69 -0
  30. data/test/fixtures/vcr_cassettes/v2/spot/market/merge-depth-when_an_error_occurs.yml +63 -0
  31. data/test/fixtures/vcr_cassettes/v2/spot/market/merge-depth.yml +69 -0
  32. data/test/fixtures/vcr_cassettes/v2/spot/market/orderbook-when_an_error_occurs.yml +63 -0
  33. data/test/fixtures/vcr_cassettes/v2/spot/market/orderbook.yml +69 -0
  34. data/test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_an_error_occurs.yml +69 -0
  35. data/test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_symbol_is_not_supplied.yml +69 -0
  36. data/test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_symbol_is_supplied.yml +67 -0
  37. data/test/fixtures/vcr_cassettes/v2/spot/market/vip-fee-rate-when_an_error_occurs.yml +69 -0
  38. data/test/fixtures/vcr_cassettes/v2/spot/market/vip-fee-rate.yml +69 -0
  39. data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_an_error_occurs.yml +69 -0
  40. data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_coin_is_not_supplied.yml +69 -0
  41. data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_coin_is_supplied.yml +69 -0
  42. data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_error_occurs.yml +64 -0
  43. data/test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_an_error_occurs.yml +69 -0
  44. data/test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_symbol_is_not_supplied.yml +69 -0
  45. data/test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_symbol_is_supplied.yml +67 -0
  46. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-order-when_an_error_occurs.yml +63 -0
  47. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-order.yml +84 -0
  48. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-plan-order-when_an_error_occurs.yml +67 -0
  49. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-plan-order.yml +67 -0
  50. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-replace-order-when_an_error_occurs.yml +63 -0
  51. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-replace-order.yml +63 -0
  52. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-orders-when_an_error_occurs.yml +63 -0
  53. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-orders.yml +67 -0
  54. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-order-when_an_error_occurs.yml +63 -0
  55. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-order.yml +73 -0
  56. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-plan-order-when_an_error_occurs.yml +63 -0
  57. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-plan-order.yml +72 -0
  58. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-replace-order-when_an_error_occurs.yml +63 -0
  59. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-replace-order.yml +68 -0
  60. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-symbol-order-when_an_error_occurs.yml +63 -0
  61. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-symbol-order.yml +67 -0
  62. data/test/fixtures/vcr_cassettes/v2/spot/trade/current-plan-order-when_an_error_occurs.yml +63 -0
  63. data/test/fixtures/vcr_cassettes/v2/spot/trade/current-plan-order.yml +67 -0
  64. data/test/fixtures/vcr_cassettes/v2/spot/trade/fills-when_an_error_occurs.yml +63 -0
  65. data/test/fixtures/vcr_cassettes/v2/spot/trade/fills.yml +95 -0
  66. data/test/fixtures/vcr_cassettes/v2/spot/trade/history-orders-when_an_error_occurs.yml +63 -0
  67. data/test/fixtures/vcr_cassettes/v2/spot/trade/history-orders.yml +97 -0
  68. data/test/fixtures/vcr_cassettes/v2/spot/trade/history-plan-order-when_an_error_occurs.yml +63 -0
  69. data/test/fixtures/vcr_cassettes/v2/spot/trade/history-plan-order.yml +63 -0
  70. data/test/fixtures/vcr_cassettes/v2/spot/trade/modify-plan-order-when_an_error_occurs.yml +63 -0
  71. data/test/fixtures/vcr_cassettes/v2/spot/trade/modify-plan-order.yml +63 -0
  72. data/test/fixtures/vcr_cassettes/v2/spot/trade/orderInfo-when_an_error_occurs.yml +61 -0
  73. data/test/fixtures/vcr_cassettes/v2/spot/trade/orderInfo.yml +61 -0
  74. data/test/fixtures/vcr_cassettes/v2/spot/trade/place-order-when_an_error_occurs.yml +63 -0
  75. data/test/fixtures/vcr_cassettes/v2/spot/trade/place-order.yml +67 -0
  76. data/test/fixtures/vcr_cassettes/v2/spot/trade/place-plan-order-when_an_error_occurs.yml +63 -0
  77. data/test/fixtures/vcr_cassettes/v2/spot/trade/place-plan-order.yml +67 -0
  78. data/test/fixtures/vcr_cassettes/v2/spot/trade/plan-sub-order-when_an_error_occurs.yml +63 -0
  79. data/test/fixtures/vcr_cassettes/v2/spot/trade/plan-sub-order.yml +75 -0
  80. data/test/fixtures/vcr_cassettes/v2/spot/trade/unfilled-orders-when_an_error_occurs.yml +63 -0
  81. data/test/fixtures/vcr_cassettes/v2/spot/trade/unfilled-orders.yml +97 -0
  82. data/test/fixtures/vcr_cassettes/v2/spot/wallet/cancel-withdrawal-when_an_error_occurs.yml +63 -0
  83. data/test/fixtures/vcr_cassettes/v2/spot/wallet/cancel-withdrawal.yml +63 -0
  84. data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-address-when_an_error_occurs.yml +63 -0
  85. data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-address.yml +67 -0
  86. data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-records-when_an_error_occurs.yml +63 -0
  87. data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-records.yml +63 -0
  88. data/test/fixtures/vcr_cassettes/v2/spot/wallet/modify-deposit-account-when_an_error_occurs.yml +63 -0
  89. data/test/fixtures/vcr_cassettes/v2/spot/wallet/modify-deposit-account.yml +63 -0
  90. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-address-when_an_error_occurs.yml +63 -0
  91. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-address.yml +63 -0
  92. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-records-when_an_error_occurs.yml +63 -0
  93. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-records.yml +63 -0
  94. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-transfer-when_an_error_occurs.yml +63 -0
  95. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-transfer.yml +63 -0
  96. data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-coin-info-when_an_error_occurs.yml +63 -0
  97. data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-coin-info.yml +69 -0
  98. data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-when_an_error_occurs.yml +63 -0
  99. data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer.yml +63 -0
  100. data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-records-when_an_error_occurs.yml +63 -0
  101. data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-records.yml +67 -0
  102. data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-when_an_error_occurs.yml +63 -0
  103. data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal.yml +73 -0
  104. data/test/gemspec_test.rb +4 -0
  105. 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/wallet/deposit-address?chain=TRC20&coin=USDT
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
+ - s4sBa6PLjo7+RWVc0yDmQqRzKCCYddc18yKtlumccJU=
20
+ Access-Timestamp:
21
+ - '1747574805515'
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:47 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=6vOZsrCKXPoSNfSqxPvQ2YTyEEUUqrW.ClqYrNIwo6M-1747574807-1.0.1.1-bf9Ra3F_.2DJarXDrCJkKl4H6.ZAqZ_k0WjlWCqpCElBnSIneTbSoGUbaDYJ_T8tyUOXdxMiSoGe_oSm.8Wl2.5iDQR6kifcRr3zOODODMY;
55
+ path=/; expires=Sun, 18-May-25 13:56:47 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 941bb02e4af6774e-AMS
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: '{"code":"00000","msg":"success","requestTime":1747574806919,"data":{"coin":"USDT","address":"TFs7vLUp6Y3SfAa39vdi4XrZeTJohMHzz9","chain":"TRC20","tag":null,"url":"https://tronscan.org/#/transaction/"}}'
66
+ recorded_at: Sun, 18 May 2025 13:26:47 GMT
67
+ 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/wallet/deposit-records?coin=INVALID&endTime=1690197141868&startTime=1690196141868
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
+ - GSCUylMMtWhEP/Va5oE7ON7+BAxX+bnbBp72o8kxBaM=
20
+ Access-Timestamp:
21
+ - '1747574819972'
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:01 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '95'
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=2w_PMNIgF1vGVpMRZoe5983qU4E9Nc2thmgU0PZnkLg-1747574821-1.0.1.1-8EJFX1h9DzN.5Cc8b03Vmcb.7k_JDW7fF.wKpfB0evtipFxEk_dITmZanrc5lMZDR5ZSqAhl2BfBI8b2lLHfJYBq5YZ_B.gykubrdb_DrQ8;
51
+ path=/; expires=Sun, 18-May-25 13:57:01 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bb0889ba40adc-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:27:01 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/wallet/deposit-records?endTime=1690197141868&startTime=1690196141868
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
+ - bApfVLRyKg6RJXopKcj/pPRV+BxLHtv0vozx/i7Y/FE=
20
+ Access-Timestamp:
21
+ - '1747580594776'
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 15:03:22 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '95'
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=WbWAWBTPw8XfPWZt2G.dqlFeK4FpsUjXByAvoz2zWyw-1747580602-1.0.1.1-zSxSOmWs.X7lqffaMtoiF95NoJDLwg3BfbzVStg4l9D6ICSfq2OR84.p7aB_CB3gBBxEWC7CcGdomjRoUlh8o4BfAbnWv8TYdX1wtNTTIkY;
51
+ path=/; expires=Sun, 18-May-25 15:33: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
+ - 941c3dacaf800a58-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"code": "00000","msg": "success","requestTime": 1654507973411,"data": [{"orderId": "1","tradeId": "1","coin": "USDT","type": "deposit","size": "10.00000000","status": "success","toAddress": "0x51xxx","dest": "on_chain","chain": "erc20","fromAddress": "0x52xxx","cTime": "1653290769222","uTime": "1653290769222"}]}'
62
+ recorded_at: Sun, 18 May 2025 15:03: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/wallet/modify-deposit-account
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"accountType":"INVALID","coin":"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
+ - 6yKlbu1WZoVZGinCMT9IHoMnwkydHCxzaZY5RcI0KZs=
20
+ Access-Timestamp:
21
+ - '1747574766628'
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:08 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '90'
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=2OUs3oBTIhxUW6OLnuljwpon3idC1stQks9y2V22P9I-1747574768-1.0.1.1-3D9s8QHVG.eLykW.vwJf2EBMYVydwfe1WmGyxAR_2a0M_7a9lBboU5zJrBUhVA6QoGsOTz8cpLqtFmpMY9Hg86ol.YtlwB3wWjmStUiTHC0;
51
+ path=/; expires=Sun, 18-May-25 13:56:08 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941baf3b0fedbbb0-FRA
59
+ body:
60
+ encoding: ASCII-8BIT
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:26:08 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/wallet/modify-deposit-account
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"accountType":"spot","coin":"TRX"}'
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
+ - Ehlna8kdSkRazytUewQZCsgMT69UekuLRu9qO0bJZEw=
20
+ Access-Timestamp:
21
+ - '1747574795892'
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:37 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '87'
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=zVt7GmYzOL9xP5wxYC5KHN.gZ.jYhFh2O5gCVMmRErk-1747574797-1.0.1.1-qoQ4hlhA_1io.WtiigLRlU2mKlWqH3OPyPzGPxBQcxigqZRpP7tA8cZQK6yDuQ6Y8d5yXs5c.RzjH57gdkjPU0dPly5xF5SSyOPkcFIqbXM;
51
+ path=/; expires=Sun, 18-May-25 13:56:37 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941baff21b6265c1-FRA
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"code": "00000","msg": "success","requestTime": 1683875302853,"data": "success"}'
62
+ recorded_at: Sun, 18 May 2025 13:26:37 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/wallet/subaccount-deposit-address?chain=INVALID&coin=INVALID&subUid=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
+ - XF3q7A7xK/HSqDTYgrMyiPUF0GZ+ImKKtpRf6VyQctI=
20
+ Access-Timestamp:
21
+ - '1747574778277'
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:19 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=Sj3MPtOXB8.37Fh6IZ9aPxnQo77zDu9ytvHvf822cbw-1747574779-1.0.1.1-t83im86sD2MxL.Fo3lu5hCejLvZ6ii3c82YgZqx1cv0v4e8maCbXxYBObgaSWHwt02ZlPGuw1imke5gxmwkt_6KLwfy8lCQt63pq9dZqfPk;
51
+ path=/; expires=Sun, 18-May-25 13:56:19 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941baf840edc1cc9-FRA
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:26:19 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/wallet/subaccount-deposit-address?chain=TRC20&coin=USDT&subUid=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
+ - q74iTZEmjB/9qTYVbBa3HmI65b8ui2NvlZcV6jZg/Ls=
20
+ Access-Timestamp:
21
+ - '1747823054678'
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
+ - Wed, 21 May 2025 10:24:17 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '108'
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=IvVoSG6Zci92aE9NCbM1ig0DMSZiBN1R1cqI3gSqW4E-1747823057-1.0.1.1-L5ttMlcYExoD9Kh3OpE29kPMKtkBUGkb9Vb6ZRmHYNtfEwGBzAWHNioF51VPJwmTGvZy_WRCJQi46chZ_LIaMtQygc8UcYhUYYUdlVdJ7I8;
51
+ path=/; expires=Wed, 21-May-25 10:54: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
+ - 94335cfacd3dcfe7-MAD
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"code":"00000","msg":"success","requestTime":1747823057238,"data":{"coin":"USDT","address":"TFs7vLUp6Y3SfAa39vdi4XrZeTJohMHzz9","chain":"TRC20","tag":null,"url":"https://tronscan.org/#/transaction/"}}'
62
+ recorded_at: Wed, 21 May 2025 10:24:16 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/wallet/subaccount-deposit-records?subUid=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
+ - 7Jeo9C22lrK9vYj5p3aweeafvZby7uMGNdHEPZNKZ08=
20
+ Access-Timestamp:
21
+ - '1747574851944'
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:33 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=mSBSTr385.X6Se7Y_MjZirc2zLRrXiKn6akNSY8o2e8-1747574853-1.0.1.1-9gJzJjhInpqlU2vyHfk3zP7MjnawOH1zz0ncACSvAoj9xRJocaR5WUwPiJr8RfzseR8WyCYknPFKKK_HpAIneEcQzMX8_TIxYlvMnawqsFs;
51
+ path=/; expires=Sun, 18-May-25 13:57:33 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bb1507c5b66a4-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:27:33 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/wallet/subaccount-deposit-records?subUid=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
+ - WGnudFD9aMOBUl9wdjArtm+PMUbeBUdgugVX+jTi85Q=
20
+ Access-Timestamp:
21
+ - '1747574808740'
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:50 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=3.uEyZmns65LfhqNPWtx7roBPnXAwf.8ceiN1gH_Bgk-1747574810-1.0.1.1-3kRhAIcKWRy0TDuNPgyWdBr44QhV9Cstz1tPbV0Y1t3dR5CfKZK6_4FcDmW0UcfeTX0ihjkF2TpVas6wlZ3jTBhi9nEO7Hv3B3XXHjy1eAo;
51
+ path=/; expires=Sun, 18-May-25 13:56:50 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bb0425c9c380e-FRA
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"code": "00000","msg": "success","requestTime": 1654507973411,"data": [{"orderId": "1","tradeId": "1","coin": "USDT","size": "10.00000000","status": "success","toAddress": "0x51xxx","dest": "on_chain","chain": "erc20","fromAddress": "0x52xxx","cTime": "1653290769222","uTime": "1653290769222"}]}'
62
+ recorded_at: Sun, 18 May 2025 13:26:50 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/wallet/subaccount-transfer
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"fromType":"INVALID","toType":"INVALID",coin":"INVALID","amount":"100"}'
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
+ - 5OrYvLXGTWCJmYZf7VRByfdzKJG0cLR49zznV51C/Gc=
20
+ Access-Timestamp:
21
+ - '1747574815180'
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:56 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '96'
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=zXLGlY1CoPk.qzjLIXrnNzkjLzT3d6zqT5Sbe.M_qzw-1747574816-1.0.1.1-GTiDcU9heh77e2LpoA5CRs.bf4HiEwY2CzE700JT2lval4JJaSNn7W7WLAWUEqSH_0cZIvuLOy8fYoyXzENCtopzHLm3OB7U0KdHphsuErc;
51
+ path=/; expires=Sun, 18-May-25 13:56:56 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bb06abaf7b8dc-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:26:56 GMT
63
+ recorded_with: VCR 6.3.1