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: post
5
+ uri: https://api.bitget.com/api/v2/spot/trade/place-order
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"force":"gtc","orderType":"limit","price":"30000","side":"buy","size":"0.001","symbol":"BTCUSDT"}'
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
+ - Qh6Tmo58NM4j+fomHMgnebWNy84vBS2CEqPN87ru4uw=
20
+ Access-Timestamp:
21
+ - '1747754540058'
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:22:22 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=yKHMvWvGPs0.uReBjTi1SoqdCFPpn02ZF4WGgQBxH5E-1747754542-1.0.1.1-8gzIJop_vcZyNb6ccCR.pd1B1L17i2oLxJMrUZp8lPSGLEjwZ1UICQcLlhBLM1S87O4voiGbIpbZy8uAmzyIBg46UZaliSNSebMTfDeb1do;
55
+ path=/; expires=Tue, 20-May-25 15:52:22 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 942cd4433e3da6e5-AMS
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: '{"code":"00000","msg":"success","requestTime":1747754542738,"data":{"orderId":"1308742897634820105","clientOid":"5fec19b7-1f3a-4b4a-ab47-013724c9e7dc"}}'
66
+ recorded_at: Tue, 20 May 2025 15:22:21 GMT
67
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bitget.com/api/v2/spot/trade/place-plan-order
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"symbol":"INVALID","side":"buy","orderType":"limit","size":"0.001","triggerPrice":"30000","executePrice":"30000","triggerType":null,"timeInForce":null,"clientOrderId":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
+ - sl+kOtalA8TmlfInjdVmnic3aeeiLq4yssm1DppU2a4=
20
+ Access-Timestamp:
21
+ - '1747574847185'
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:28 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '98'
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=Ql8_Z7frEHgX7a43gT7RovzhyEYqsU87yS55AeZWOYQ-1747574848-1.0.1.1-urHM8cjGdO1VbcjuH0xdGlag13VDtt.L0Yx5qcoQhyGfWLBjTZC3fzqBV64.ZrYHiboAuhumo5Ua3ebhT7hiWkE4yxDOr1tX4SiHYdCSH0s;
51
+ path=/; expires=Sun, 18-May-25 13:57: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
+ - 941bb132a926f5d7-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:27:28 GMT
63
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bitget.com/api/v2/spot/trade/place-plan-order
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"executePrice":"30000","orderType":"limit","side":"buy","size":"0.001","symbol":"BTCUSDT","triggerPrice":"30000","triggerType":"mark_price"}'
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
+ - c+IWW0SjZh0ssk0KCdQKWRvrwtGZvpndXw8FtI18FKA=
20
+ Access-Timestamp:
21
+ - '1747754726548'
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:25:29 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=QvsBwTcrpXPBbDnPZAMvhfYviKZ2zBLvKc8ML4Czly8-1747754729-1.0.1.1-QULWhmlCeCvXcgxdzXfFw.hkW7Gyzul2kWf9Z4L8gbII5wpWx9Hvxn80TDMyHZI9HVz0fFqMhO4gGwyiNSybzQJlIUfc3gzUNYrtwc7Mw70;
55
+ path=/; expires=Tue, 20-May-25 15:55:29 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 942cd8d2bded0bea-AMS
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: '{"code":"00000","msg":"success","requestTime":1747754729537,"data":{"orderId":"1308743681205645314","clientOid":"1308743681193062403"}}'
66
+ recorded_at: Tue, 20 May 2025 15:25:28 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/trade/plan-sub-order?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
+ - fV7qq3LPp2RDlAo6v7KQOgDTQZUnX7c8dUjD1rANhVY=
20
+ Access-Timestamp:
21
+ - '1747574730344'
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:31 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=W9HcBIq.iIJiPl5aEKqWzlFCeJeqJ4wdoZ1A1ubvG3Y-1747574731-1.0.1.1-tS8SYS_qozEwIkhu_aL7Vc3QP6uwOsLTLIRABTaofWOETPtT78Po1oAtaOjO7_ZAsDA4BfeFxpkTuVwIza2zCDfVME7RiXb7MlTkkfanheg;
51
+ path=/; expires=Sun, 18-May-25 13:55:31 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bae584e121b48-FRA
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:25:31 GMT
63
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,75 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.bitget.com/api/v2/spot/trade/plan-sub-order?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
+ - u7PV9iKtm4IkeFdvA+z98mF/gSuWT/fK2Sy9JoJwhUI=
20
+ Access-Timestamp:
21
+ - '1747574818368'
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:59 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=hWZuKKN0S20qCJhQvD1b7gfNW_OMMvoK4rGMIgMFINw-1747574819-1.0.1.1-kwPzvLGIIuQt7NIXE3YMQE0yr4LKENbLog6sKcfa_Ba_D.zampc1k4czR_tIJX0U0DC4rSpiZxQqVSCeFPbTTpdKzvNbD.BNf6BE4k7Px7s;
51
+ path=/; expires=Sun, 18-May-25 13:56:59 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bb07e89a0e7b1-FRA
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{
62
+ "code": "00000",
63
+ "msg": "success",
64
+ "requestTime": 1710813939206,
65
+ "data": [
66
+ {
67
+ "orderId": "xxxxxxxxxxxxx",
68
+ "price": "0.4188",
69
+ "type": "limit",
70
+ "status": "success"
71
+ }
72
+ ]
73
+ }'
74
+ recorded_at: Sun, 18 May 2025 13:26:59 GMT
75
+ 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/unfilled-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
+ - i2PCvucY5tzD3DU/v4IXtVfx/NEta2iQvpAaT3Ciizk=
20
+ Access-Timestamp:
21
+ - '1747574739746'
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:41 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=C0LOAXWhOKwwuEpaXe.m1a1SUAxixRmN0TpYAG5fqKA-1747574741-1.0.1.1-kTFw6UmKOazuBCoF7s.nZbiW9.7uif32dtoYNjmEhil3sOOPkwCCVwqIZfnaHmvKK20ipwQfti9uN0U97P7VElpC37QJcp3EfmXWNnAUbuE;
51
+ path=/; expires=Sun, 18-May-25 13:55:41 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bae931a760e3b-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:25:41 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/unfilled-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
+ - bwxaofvaMKKHonxXjo0k7U/3pu5fq/Rlt1rfmKAnsGk=
20
+ Access-Timestamp:
21
+ - '1747574799161'
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:40 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=uSVeEhsHRwvRIrKxwbnJDup6YhB3PKF1isAkYo_P7yc-1747574800-1.0.1.1-uPlL7hYMOCmc0u8SIQQOqoS28f2N_g7EXCFrzh31StiuJxiMOXJddY2tJpwOKI55VZpfawVdXvpPa6104V.bY7Qzvw91LP67N2pYY3cFaEk;
55
+ path=/; expires=Sun, 18-May-25 13:56:40 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 941bb0068915d275-FRA
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: '
66
+ {
67
+ "code": "00000",
68
+ "message": "success",
69
+ "requestTime": 1695808949356,
70
+ "data": [
71
+ {
72
+ "userId": "**********",
73
+ "symbol": "btcusdt",
74
+ "orderId": "2222222",
75
+ "clientOid": "xxxxxxx",
76
+ "priceAvg": "34829.12",
77
+ "size": "1",
78
+ "orderType": "limit",
79
+ "side": "buy",
80
+ "status": "new",
81
+ "basePrice": "0",
82
+ "baseVolume": "0",
83
+ "quoteVolume": "0",
84
+ "enterPointSource": "WEB",
85
+ "presetTakeProfitPrice": "70000",
86
+ "executeTakeProfitPrice": "",
87
+ "presetStopLossPrice": "10000",
88
+ "executeStopLossPrice": "",
89
+ "cTime": "1622697148",
90
+ "tpslType": "normal",
91
+ "triggerPrice": null
92
+ }
93
+ ]
94
+ }
95
+ '
96
+ recorded_at: Sun, 18 May 2025 13:26:40 GMT
97
+ 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/cancel-withdrawal
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"orderId":"INVALID","requestTime":null,"receiveWindow":null}'
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Access-Key:
17
+ - "<API_KEY>"
18
+ Access-Sign:
19
+ - i/d7VukvogPbX/GWcy9AEElHHk95pHZOwLeLJeFicSE=
20
+ Access-Timestamp:
21
+ - '1747574784688'
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:26 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '119'
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=L1yzS_OlBVfZ_oLFG75r4mWz7hLWn.8WfrI6vOAukVE-1747574786-1.0.1.1-CIKNDleANdULHOcRhmcqMj9HYShJrTgZLTXW5UiX9jQSdsRXIs.cNt60.98tjnRf2gQx9LQVp8z.vKmI6DsJN.0D9evisiWYspGpadw8Tls;
51
+ path=/; expires=Sun, 18-May-25 13:56:26 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bafac0c84d2a2-FRA
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:26:26 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/cancel-withdrawal
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"orderId":"123456"}'
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
+ - Gg7CUiOAvaE4tpWOjPE/NT12Y8xlYbUGtlUcl4wcfQY=
20
+ Access-Timestamp:
21
+ - '1747790261810'
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 01:17:43 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '119'
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=DaHdBg0qmxS8NB9JbqKLfbHBJt1b.IG2jg90iZGiV5k-1747790263-1.0.1.1-NPBtRZgfx2Xw0e.V6fRIxBihOMmeNmi4f75j7OHA8.3SlpAeynrJENjHvNZ.jO4Cu92di6lHwsjH0awt7IoHKdwJUbpnv_YqhI01DjUUsFU;
51
+ path=/; expires=Wed, 21-May-25 01:47:43 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 94303c5a98a4b1fb-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"data":"success"}'
62
+ recorded_at: Wed, 21 May 2025 01:17:43 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-address?chain=INVALID&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
+ - u/CQNeAW1gu3u5TJ2jJjga2TY0GlqyRrxUkuAQBe8+0=
20
+ Access-Timestamp:
21
+ - '1747574826368'
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:07 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=taJy7YPt5.bHKfHKuLH_jPNF9qJtcfmK7ZxoMQtFnf8-1747574827-1.0.1.1-XXLd_gYkZ_1CW7YloG8JqwiHZkAy68NKoTAUAF_ITU31T2gImwXg9Thx_fZC2F1KwS3sHMM8oKFntb8TtB.KmXhlf7eAzNcRl7DrvghhX3Y;
51
+ path=/; expires=Sun, 18-May-25 13:57:07 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bb0b09fabb8be-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:27:07 GMT
63
+ recorded_with: VCR 6.3.1