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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +9 -0
  3. data/bitget.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/account/info
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
+ - iEQMo5i2pPvcobJDbYh+pmq2BLMBY7AgiwXcxDvd7nc=
20
+ Access-Timestamp:
21
+ - '1747391309915'
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
+ - Fri, 16 May 2025 10:28:31 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Transfer-Encoding:
38
+ - chunked
39
+ Connection:
40
+ - keep-alive
41
+ X-Mbx-Used-Remain-Limit:
42
+ - '0'
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=fag3VI5u60LoEuQyDgL9gKrjDJg.0TbJPXlG9WolRWA-1747391311-1.0.1.1-SIgpGg3wQ3ZKnz0sIKzyIqiTOp_UQBYxZQnIJkD5egUu.Q1MuYdJKk0F5rmzFc6a8hRRSkQ1k9gFF5k3s9QpoubvSY320x7Yc2a.IOdhxwE;
55
+ path=/; expires=Fri, 16-May-25 10:58:31 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 940a304dec9011ed-AMS
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: ''
66
+ recorded_at: Fri, 16 May 2025 10:28:31 GMT
67
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.bitget.com/api/v2/spot/account/info
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
+ - BEvT4E0hoAkdjmzil/22Uq+nI2lg3m8jOQkk/66XbPU=
20
+ Access-Timestamp:
21
+ - '1747406697556'
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
+ - Fri, 16 May 2025 14:44:59 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Transfer-Encoding:
38
+ - chunked
39
+ Connection:
40
+ - keep-alive
41
+ X-Mbx-Used-Remain-Limit:
42
+ - '0'
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=VKXnZhv5eAt9QDHJmqYJNWzeMBBGkKYeZM_2_hUf3Ns-1747406699-1.0.1.1-2HRcRAs.SzbIRZWuU.mG9L5gMLAVRDgy6lg7lqetKoJTbJTnqJehMzmtKuRxWO9OQ309EzagNqjbTBXQA8zlM7zHqHO5RAvj1FAF5fcB.hs;
55
+ path=/; expires=Fri, 16-May-25 15:14:59 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 940ba7fc0d685eeb-MRS
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: '{"code":"00000","msg":"success","requestTime":1747406699064,"data":{"userId":"7955878595","inviterId":null,"channelCode":"rvbt","channel":"aqkm","ips":"","authorities":["wtow","chow","smow","coow","taxw","p2pw","cpow","ttow","stow"],"parentId":7955878595,"traderType":"not_trader","regisTime":"1731418905000"}}'
66
+ recorded_at: Fri, 16 May 2025 14:44:59 GMT
67
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.bitget.com/api/v2/spot/account/sub-main-trans-record
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
+ - UwfR4G5ysYFqcgtQjd+ecbTAzi9syxRT4LII3vKcFyQ=
20
+ Access-Timestamp:
21
+ - '1747574731890'
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:33 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=cc9w5D07EIqsqYW_ho96w_hutA_lPKgJw4njI2uud7E-1747574733-1.0.1.1-dEPsFZA9U5LKSXSsZSknLhFksIdOL_QFF2NNTN3KhE2E3pauONLXJgr3sKwRIX9h8pGig_eWWSUY2CoD_kRx7zCnWC.LENlCa7MHlu09urw;
55
+ path=/; expires=Sun, 18-May-25 13:55:33 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 941bae61f9cd9751-FRA
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: ''
66
+ recorded_at: Sun, 18 May 2025 13:25:33 GMT
67
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.bitget.com/api/v2/spot/account/sub-main-trans-record
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
+ - oZlZ9bC3jxomd5OL/AYsHLgSwK1yzhzynehEIAncxR8=
20
+ Access-Timestamp:
21
+ - '1747788415945'
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 00:46:57 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=Akd.xM_HMg5u5T0tn1aoR8LDSd0V2ztmhZdvnI62NIo-1747788417-1.0.1.1-PFp5sx2e9g4KLz.EX_pH0vYLWYR0v7q_xbaz2sKb7qDYRGhlr.FyzyAbqrJX_3KEG3kOVeMK.SCGPRlwslewbwmB_YjmV3ucvKyavRwLzvY;
55
+ path=/; expires=Wed, 21-May-25 01:16:57 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 94300f49efde0324-MAD
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: '{"code":"00000","msg":"success","requestTime":1747788417714,"data":[{"coin":"USDT","status":"Successful","toType":"spot","fromType":"usdt_futures","size":"3000.00000000","ts":"1744674721240","clientOid":"1295825189997600768","transferId":"149096092","fromUserId":"7955878595","toUserId":"7955878595"}]}'
66
+ recorded_at: Wed, 21 May 2025 00:46:58 GMT
67
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.bitget.com/api/v2/spot/account/subaccount-assets
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
+ - TJR/wIr0AzQ2EuBRH1w5hakk1V3vh8D5syaymcZDXhQ=
20
+ Access-Timestamp:
21
+ - '1747574763491'
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:04 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=qEZlrz3SqQoVONxcmbOAiEclnTv_.QJfiH_XaDs9h5s-1747574764-1.0.1.1-miW3H1A9R7dv7auSkOShn4zpR0pUzlNvug4rRPQ8dAQIkAlPF.XJRdzEq7nFi7ZttzCRAi98zHOI.ngccZiNbdfDax_k97W.tUIf3Yi7VBI;
55
+ path=/; expires=Sun, 18-May-25 13:56:04 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 941baf277e91360e-FRA
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: ''
66
+ recorded_at: Sun, 18 May 2025 13:26:05 GMT
67
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,102 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.bitget.com/api/v2/spot/account/subaccount-assets
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
+ - Y/EzeO3ztm2Pvhr3juGPwjJ9GHryNWstcknJTKB1r/o=
20
+ Access-Timestamp:
21
+ - '1747574760292'
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:01 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=hEOPYTGarzAMO.dskYYXZ418H69ZBOaJkUeTkj7hYoc-1747574761-1.0.1.1-vxPsFJf2OciFtkQ6qv1JZ8rjb0H1896Urk3Ut1o15_0wvrWqxW4s9vviOmxmhECKu5JyqdTo7UhCay_DJI3v8WQDiRdNoW9Wql6_lHDRTEk;
55
+ path=/; expires=Sun, 18-May-25 13:56:01 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 941baf13caec5d67-FRA
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: '
66
+ {
67
+ "code": "00000",
68
+ "message": "success",
69
+ "requestTime": 1695808949356,
70
+ "data": [
71
+ {
72
+ "id": 1111,
73
+ "userId": 1234567890,
74
+ "assetsList": [
75
+ {
76
+ "coin": "BTC",
77
+ "available": "1.1",
78
+ "limitAvailable": "12.1",
79
+ "frozen": "0",
80
+ "locked": "1.1",
81
+ "uTime": "1337654897651"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "id": 2222,
87
+ "userId": 1234567890,
88
+ "assetsList": [
89
+ {
90
+ "coin": "ETH",
91
+ "available": "12.1",
92
+ "limitAvailable": "12.1",
93
+ "frozen": "0",
94
+ "locked": "1.1",
95
+ "uTime": "1337654897651"
96
+ }
97
+ ]
98
+ }
99
+ ]
100
+ }'
101
+ recorded_at: Sun, 18 May 2025 13:26:01 GMT
102
+ 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/account/switch-deduct
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"deduct":"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
+ - q+LtVakXRjjtEn4JeS+g0S/ppafPu7Ym/6lsZJ3OkSA=
20
+ Access-Timestamp:
21
+ - '1747574794259'
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:35 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '106'
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=23QctvHxsgXKR_jGrmqvEg3.cydUrUCO.DxiReG6vyI-1747574795-1.0.1.1-t9pcR23b0hofIy7rYBv7I9gYoHx0JbP1Ml_IbkuU8tiqQHOAJR6O0K8mANrDIfhYe0o4etQIsKN8UZNsH6UcE8xBljbFeuXe.cJVj6ftWNY;
51
+ path=/; expires=Sun, 18-May-25 13:56:35 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bafe7ed2a668d-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:26:35 GMT
63
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bitget.com/api/v2/spot/account/switch-deduct
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"deduct":"on"}'
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
+ - 4MxednaSZHKYEKYa5iFdDN4WM2dfFrwwr30UgsSvTHg=
20
+ Access-Timestamp:
21
+ - '1747753963945'
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:12:47 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '106'
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=9HBBQhwsmdARZ8rzKNoRqWqfllM156JBogZMHDMDpqQ-1747753967-1.0.1.1-ysX_5gUgkbakyHyb4U7by8G3MOwsgSpAwRrVMjF3wBs32lz8u8VUjZIg2rb_8q5DDcwG_xG8EWUchr_BLSHE8TbUi.iEj9whQcL2c4JqNeQ;
51
+ path=/; expires=Tue, 20-May-25 15:42:47 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 942cc634dd083ed0-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: '
62
+ {
63
+ "code": "00000",
64
+ "msg": "success",
65
+ "requestTime": 1683875302853,
66
+ "data": true
67
+ }'
68
+ recorded_at: Tue, 20 May 2025 15:12:45 GMT
69
+ 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/account/transferRecords?coin=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
+ - "+v5aGnNrFv8WbLTnQ1Si99sciNveC54DAUfSk3JY2ec="
20
+ Access-Timestamp:
21
+ - '1747574823154'
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:04 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '89'
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=a1COgzr5IVZX3ZdL9KxS97OCF7t6bjr__Nvsj6Y9J3Q-1747574824-1.0.1.1-5sPdLcFqrNwjsTMJ.hMdBXjd4UabxVCHBNRdICOzpPtwSqw7uo30dPNZDRkQXp1oOO421Sz3YI2B2qF3f9lGxLXzbC3gjaW9voDJ8a1fODI;
51
+ path=/; expires=Sun, 18-May-25 13:57:04 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bb09c7a6ddbdc-FRA
59
+ body:
60
+ encoding: ASCII-8BIT
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:27:04 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/account/transferRecords
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
+ - kL+xQcAs614qAkieGoE/ztWLP9+HJrR9eS1SWK9n6Fg=
20
+ Access-Timestamp:
21
+ - '1747574758725'
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:00 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '85'
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=_DzdaQ._qna0.xjnhilkCkjlFcLtD5msaHsqFHFXvTo-1747574760-1.0.1.1-zcgLexy0dGQ.tkrr8M_p.pI76AtOxTMiNRSrdkl.jFXahS8WVYwytOMx6n7ln7wydsDC1Qi0mZiloapxP0WhpezI3MnZDWb0CpYQFQIP2Hg;
51
+ path=/; expires=Sun, 18-May-25 13:56:00 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941baf09ada8dba7-FRA
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"code": "00000","data": [{"coin": "btc","status": "Successful","toType": "usdt_futures","toSymbol": "","fromType": "spot","fromSymbol": "BTC/USD","size": "1000.00000000","ts": "1631070374488","clientOid": "1","transferId": "1"}],"msg": "success","requestTime": 1631608142260}'
62
+ recorded_at: Sun, 18 May 2025 13:26:00 GMT
63
+ recorded_with: VCR 6.3.1