bitget.rb 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +18 -0
  3. data/README.md +3 -0
  4. data/bitget.rb.gemspec +1 -1
  5. data/lib/Bitget/V2/Client.rb +6 -1
  6. data/lib/Bitget/VERSION.rb +1 -1
  7. data/test/V2/Client_test.rb +12 -0
  8. data/test/fixtures/vcr_cassettes/v2/spot/account/assets-when_an_error_occurs.yml +69 -0
  9. data/test/fixtures/vcr_cassettes/v2/spot/account/assets.yml +69 -0
  10. data/test/fixtures/vcr_cassettes/v2/spot/account/bills-when_an_error_occurs.yml +63 -0
  11. data/test/fixtures/vcr_cassettes/v2/spot/account/bills.yml +69 -0
  12. data/test/fixtures/vcr_cassettes/v2/spot/account/bleradaf-info.yml +67 -0
  13. data/test/fixtures/vcr_cassettes/v2/spot/account/deduct-info-when_an_error_occurs.yml +63 -0
  14. data/test/fixtures/vcr_cassettes/v2/spot/account/deduct-info.yml +67 -0
  15. data/test/fixtures/vcr_cassettes/v2/spot/account/info-when_an_error_occurs.yml +67 -0
  16. data/test/fixtures/vcr_cassettes/v2/spot/account/info.yml +67 -0
  17. data/test/fixtures/vcr_cassettes/v2/spot/account/sub-main-trans-record-when_an_error_occurs.yml +67 -0
  18. data/test/fixtures/vcr_cassettes/v2/spot/account/sub-main-trans-record.yml +67 -0
  19. data/test/fixtures/vcr_cassettes/v2/spot/account/subaccount-assets-when_an_error_occurs.yml +67 -0
  20. data/test/fixtures/vcr_cassettes/v2/spot/account/subaccount-assets.yml +102 -0
  21. data/test/fixtures/vcr_cassettes/v2/spot/account/switch-deduct-when_an_error_occurs.yml +63 -0
  22. data/test/fixtures/vcr_cassettes/v2/spot/account/switch-deduct.yml +69 -0
  23. data/test/fixtures/vcr_cassettes/v2/spot/account/transferRecords-when_an_error_occurs.yml +63 -0
  24. data/test/fixtures/vcr_cassettes/v2/spot/account/transferRecords.yml +63 -0
  25. data/test/fixtures/vcr_cassettes/v2/spot/market/candles-when_an_error_occurs.yml +63 -0
  26. data/test/fixtures/vcr_cassettes/v2/spot/market/candles.yml +69 -0
  27. data/test/fixtures/vcr_cassettes/v2/spot/market/fills-history-when_an_error_occurs.yml +63 -0
  28. data/test/fixtures/vcr_cassettes/v2/spot/market/fills-history.yml +69 -0
  29. data/test/fixtures/vcr_cassettes/v2/spot/market/fills-when_an_error_occurs.yml +63 -0
  30. data/test/fixtures/vcr_cassettes/v2/spot/market/fills.yml +69 -0
  31. data/test/fixtures/vcr_cassettes/v2/spot/market/history-candles-when_an_error_occurs.yml +63 -0
  32. data/test/fixtures/vcr_cassettes/v2/spot/market/history-candles.yml +69 -0
  33. data/test/fixtures/vcr_cassettes/v2/spot/market/merge-depth-when_an_error_occurs.yml +63 -0
  34. data/test/fixtures/vcr_cassettes/v2/spot/market/merge-depth.yml +69 -0
  35. data/test/fixtures/vcr_cassettes/v2/spot/market/orderbook-when_an_error_occurs.yml +63 -0
  36. data/test/fixtures/vcr_cassettes/v2/spot/market/orderbook.yml +69 -0
  37. data/test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_an_error_occurs.yml +69 -0
  38. data/test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_symbol_is_not_supplied.yml +69 -0
  39. data/test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_symbol_is_supplied.yml +67 -0
  40. data/test/fixtures/vcr_cassettes/v2/spot/market/vip-fee-rate-when_an_error_occurs.yml +69 -0
  41. data/test/fixtures/vcr_cassettes/v2/spot/market/vip-fee-rate.yml +69 -0
  42. data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_an_error_occurs.yml +69 -0
  43. data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_coin_is_not_supplied.yml +69 -0
  44. data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_coin_is_supplied.yml +69 -0
  45. data/test/fixtures/vcr_cassettes/v2/spot/public/coins-when_error_occurs.yml +64 -0
  46. data/test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_an_error_occurs.yml +69 -0
  47. data/test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_symbol_is_not_supplied.yml +69 -0
  48. data/test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_symbol_is_supplied.yml +67 -0
  49. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-order-when_an_error_occurs.yml +63 -0
  50. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-order.yml +84 -0
  51. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-plan-order-when_an_error_occurs.yml +67 -0
  52. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-plan-order.yml +67 -0
  53. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-replace-order-when_an_error_occurs.yml +63 -0
  54. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-replace-order.yml +63 -0
  55. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-orders-when_an_error_occurs.yml +63 -0
  56. data/test/fixtures/vcr_cassettes/v2/spot/trade/batch-orders.yml +67 -0
  57. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-order-when_an_error_occurs.yml +63 -0
  58. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-order.yml +73 -0
  59. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-plan-order-when_an_error_occurs.yml +63 -0
  60. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-plan-order.yml +72 -0
  61. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-replace-order-when_an_error_occurs.yml +63 -0
  62. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-replace-order.yml +68 -0
  63. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-symbol-order-when_an_error_occurs.yml +63 -0
  64. data/test/fixtures/vcr_cassettes/v2/spot/trade/cancel-symbol-order.yml +67 -0
  65. data/test/fixtures/vcr_cassettes/v2/spot/trade/current-plan-order-when_an_error_occurs.yml +63 -0
  66. data/test/fixtures/vcr_cassettes/v2/spot/trade/current-plan-order.yml +67 -0
  67. data/test/fixtures/vcr_cassettes/v2/spot/trade/fills-when_an_error_occurs.yml +63 -0
  68. data/test/fixtures/vcr_cassettes/v2/spot/trade/fills.yml +95 -0
  69. data/test/fixtures/vcr_cassettes/v2/spot/trade/history-orders-when_an_error_occurs.yml +63 -0
  70. data/test/fixtures/vcr_cassettes/v2/spot/trade/history-orders.yml +97 -0
  71. data/test/fixtures/vcr_cassettes/v2/spot/trade/history-plan-order-when_an_error_occurs.yml +63 -0
  72. data/test/fixtures/vcr_cassettes/v2/spot/trade/history-plan-order.yml +63 -0
  73. data/test/fixtures/vcr_cassettes/v2/spot/trade/modify-plan-order-when_an_error_occurs.yml +63 -0
  74. data/test/fixtures/vcr_cassettes/v2/spot/trade/modify-plan-order.yml +63 -0
  75. data/test/fixtures/vcr_cassettes/v2/spot/trade/orderInfo-when_an_error_occurs.yml +61 -0
  76. data/test/fixtures/vcr_cassettes/v2/spot/trade/orderInfo.yml +61 -0
  77. data/test/fixtures/vcr_cassettes/v2/spot/trade/place-order-when_an_error_occurs.yml +63 -0
  78. data/test/fixtures/vcr_cassettes/v2/spot/trade/place-order.yml +67 -0
  79. data/test/fixtures/vcr_cassettes/v2/spot/trade/place-plan-order-when_an_error_occurs.yml +63 -0
  80. data/test/fixtures/vcr_cassettes/v2/spot/trade/place-plan-order.yml +67 -0
  81. data/test/fixtures/vcr_cassettes/v2/spot/trade/plan-sub-order-when_an_error_occurs.yml +63 -0
  82. data/test/fixtures/vcr_cassettes/v2/spot/trade/plan-sub-order.yml +75 -0
  83. data/test/fixtures/vcr_cassettes/v2/spot/trade/unfilled-orders-when_an_error_occurs.yml +63 -0
  84. data/test/fixtures/vcr_cassettes/v2/spot/trade/unfilled-orders.yml +97 -0
  85. data/test/fixtures/vcr_cassettes/v2/spot/wallet/cancel-withdrawal-when_an_error_occurs.yml +63 -0
  86. data/test/fixtures/vcr_cassettes/v2/spot/wallet/cancel-withdrawal.yml +63 -0
  87. data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-address-when_an_error_occurs.yml +63 -0
  88. data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-address.yml +67 -0
  89. data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-records-when_an_error_occurs.yml +63 -0
  90. data/test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-records.yml +63 -0
  91. data/test/fixtures/vcr_cassettes/v2/spot/wallet/modify-deposit-account-when_an_error_occurs.yml +63 -0
  92. data/test/fixtures/vcr_cassettes/v2/spot/wallet/modify-deposit-account.yml +63 -0
  93. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-address-when_an_error_occurs.yml +63 -0
  94. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-address.yml +63 -0
  95. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-records-when_an_error_occurs.yml +63 -0
  96. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-records.yml +63 -0
  97. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-transfer-when_an_error_occurs.yml +63 -0
  98. data/test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-transfer.yml +63 -0
  99. data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-coin-info-when_an_error_occurs.yml +63 -0
  100. data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-coin-info.yml +69 -0
  101. data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-when_an_error_occurs.yml +63 -0
  102. data/test/fixtures/vcr_cassettes/v2/spot/wallet/transfer.yml +63 -0
  103. data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-records-when_an_error_occurs.yml +63 -0
  104. data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-records.yml +67 -0
  105. data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-when_an_error_occurs.yml +63 -0
  106. data/test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal.yml +73 -0
  107. data/test/gemspec_test.rb +4 -0
  108. metadata +100 -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
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.bitget.com/api/v2/spot/market/candles?granularity=1min&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
+ - qOnsypfvDp/YqWvmA8YI5nokU/NBYKw6B52wAEBXKJs=
20
+ Access-Timestamp:
21
+ - '1747574735049'
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:36 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=g86DXxelSji0BnmnAaXzp51kZSoaAdj0QZ.zx_g90Aw-1747574736-1.0.1.1-6nS7EEfUjDKMhJ1Ny69ufn9tUa.9gwX.nvdqaNNrjfUAGqR1lbDHLNLEOH6zaiawGiIp3zn6O9NS8qtm0JbjrY9xyKAWizBmHQX1K91rSbc;
51
+ path=/; expires=Sun, 18-May-25 13:55:36 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bae75a94bdc76-FRA
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:25:36 GMT
63
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.bitget.com/api/v2/spot/market/candles?granularity=1min&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
+ - OeNnI+62TlXl/hk6zdZWij6SuQ8lCMr+jOFqQeHT3Gk=
20
+ Access-Timestamp:
21
+ - '1747574807157'
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:48 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=UYBNXpPQISsJGKDsLi8Xpp_PVur2MfWN6x7MlS98Kgo-1747574808-1.0.1.1-PZQaqVf.tSJeJUYP_MbzPGackE7NFzrnCW4f1WEm5cfe000vZoaidY1LI5S3wxtZAtPbolz6SQGHRR78ZX.y_APdeBhy6jGiuLH74jMoKwY;
57
+ path=/; expires=Sun, 18-May-25 13:56:48 GMT; domain=.api.bitget.com; HttpOnly;
58
+ Secure; SameSite=None
59
+ X-Frame-Options:
60
+ - SAMEORIGIN
61
+ Server:
62
+ - cloudflare
63
+ Cf-Ray:
64
+ - 941bb0387893dbad-FRA
65
+ body:
66
+ encoding: ASCII-8BIT
67
+ string: '{"code":"00000","msg":"success","requestTime":1747574808527,"data":[["1747568820000","103810.08","103810.08","103810.07","103810.08","1.341912","139303.98579953","139303.98579953"],["1747568880000","103810.08","103810.08","103808.5","103808.51","0.725222","75285.00307674","75285.00307674"],["1747568940000","103808.51","103808.51","103802.67","103802.68","0.941033","97683.62525863","97683.62525863"],["1747569000000","103802.68","103802.68","103800.97","103800.98","0.513392","53291.09776879","53291.09776879"],["1747569060000","103800.98","103800.98","103795.97","103795.98","0.702314","72899.37100763","72899.37100763"],["1747569120000","103795.98","103795.98","103795.97","103795.98","2.628541","272831.97582946","272831.97582946"],["1747569180000","103795.98","103795.98","103777","103777","2.868523","297712.23134937","297712.23134937"],["1747569240000","103777","103777.01","103777","103777","0.500847","51976.40121419","51976.40121419"],["1747569300000","103777","103777.01","103777","103777","0.413578","42919.88629573","42919.88629573"],["1747569360000","103777","103777.01","103776.99","103776.99","1.627042","168849.53461263","168849.53461263"],["1747569420000","103776.99","103777","103776.99","103776.99","1.468891","152437.09305437","152437.09305437"],["1747569480000","103776.99","103795.13","103776.99","103785.86","1.367759","141948.8420142","141948.8420142"],["1747569540000","103785.86","103785.86","103774","103774.01","1.76069","182719.39886091","182719.39886091"],["1747569600000","103774.01","103795.13","103773.11","103779.89","3.546775","368077.14212323","368077.14212323"],["1747569660000","103779.89","103779.89","103767","103767.01","2.022819","209911.57441173","209911.57441173"],["1747569720000","103767.01","103767.01","103767","103767","1.804486","187246.10722274","187246.10722274"],["1747569780000","103767","103767.01","103767","103767","2.683185","278426.07203665","278426.07203665"],["1747569840000","103767","103767.01","103767","103767","0.488767","50717.88771148","50717.88771148"],["1747569900000","103767","103767.01","103767","103767.01","0.340539","35336.71243982","35336.71243982"],["1747569960000","103767.01","103767.01","103714","103714.01","3.928833","407616.60741558","407616.60741558"],["1747570020000","103714.01","103714.01","103679.5","103682.5","1.261202","130787.75347463","130787.75347463"],["1747570080000","103682.5","103712.23","103682.49","103710.66","6.015017","623773.50367464","623773.50367464"],["1747570140000","103710.66","103710.66","103693.9","103693.9","4.382288","454435.94499176","454435.94499176"],["1747570200000","103693.9","103721.78","103693.9","103721.77","0.806176","83609.40904889","83609.40904889"],["1747570260000","103721.77","103742.14","103721.77","103742.14","1.379646","143115.55997262","143115.55997262"],["1747570320000","103742.14","103742.14","103742.11","103742.11","4.306602","446776.0088242","446776.0088242"],["1747570380000","103742.11","103742.12","103724.8","103724.8","2.102458","218104.22114973","218104.22114973"],["1747570440000","103724.8","103724.81","103724.8","103724.81","1.189764","123408.03987473","123408.03987473"],["1747570500000","103724.81","103740.99","103724.8","103740.99","0.815917","84635.06843066","84635.06843066"],["1747570560000","103740.99","103740.99","103740.98","103740.98","1.333959","138386.22082317","138386.22082317"],["1747570620000","103740.98","103740.99","103730.72","103735.3","0.636857","66066.50964493","66066.50964493"],["1747570680000","103735.3","103735.31","103731.3","103731.3","1.258822","130582.56393972","130582.56393972"],["1747570740000","103731.3","103731.31","103731.3","103731.3","0.83896","87026.41562192","87026.41562192"],["1747570800000","103731.3","103760.52","103731.3","103760.51","0.67022","69530.4287579","69530.4287579"],["1747570860000","103760.51","103793.79","103760.51","103793.78","1.468679","152415.43390643","152415.43390643"],["1747570920000","103793.78","103793.79","103790.8","103790.8","1.92883","200196.19742773","200196.19742773"],["1747570980000","103790.8","103808.51","103790.8","103808.51","1.526447","158448.55393097","158448.55393097"],["1747571040000","103808.51","103808.51","103808.5","103808.51","0.908215","94280.44289147","94280.44289147"],["1747571100000","103808.51","103808.51","103808.5","103808.51","0.447049","46407.48862172","46407.48862172"],["1747571160000","103808.51","103846.39","103808.5","103826.2","1.042011","108192.63786787","108192.63786787"],["1747571220000","103826.2","103826.22","103826.2","103826.22","0.531333","55166.29280162","55166.29280162"],["1747571280000","103826.22","103826.22","103826.21","103826.22","2.015435","209254.98836214","209254.98836214"],["1747571340000","103826.22","103826.22","103826.21","103826.21","3.663455","380362.66543269","380362.66543269"],["1747571400000","103826.21","103833.4","103826.21","103833.4","1.019622","105864.12516239","105864.12516239"],["1747571460000","103833.4","103846.38","103833.39","103846.38","0.693683","72029.41437345","72029.41437345"],["1747571520000","103846.38","103846.39","103846.37","103846.39","1.296065","134591.66065407","134591.66065407"],["1747571580000","103846.39","103866.31","103846.38","103865.41","1.324991","137604.63661429","137604.63661429"],["1747571640000","103865.41","103865.41","103861.6","103861.61","0.619632","64356.99294819","64356.99294819"],["1747571700000","103861.61","103861.61","103861.6","103861.61","0.773402","80326.77161112","80326.77161112"],["1747571760000","103861.61","103861.61","103859.6","103859.61","2.05757","213702.05910733","213702.05910733"],["1747571820000","103859.61","103859.61","103859.6","103859.61","0.557264","57877.21900013","57877.21900013"],["1747571880000","103859.61","103859.61","103859.6","103859.61","0.5887","61142.14927399","61142.14927399"],["1747571940000","103859.61","103859.61","103859.6","103859.61","0.383711","39852.07285439","39852.07285439"],["1747572000000","103859.61","103859.61","103847.6","103859.61","2.617031","271789.73478371","271789.73478371"],["1747572060000","103859.61","103859.61","103847.6","103847.61","2.814244","292268.76924856","292268.76924856"],["1747572120000","103847.61","103847.61","103841.59","103841.6","0.77887","80881.04075996","80881.04075996"],["1747572180000","103841.6","103841.6","103826.2","103826.22","2.901015","301214.95668295","301214.95668295"],["1747572240000","103826.22","103826.22","103826.21","103826.21","0.515442","53516.39208661","53516.39208661"],["1747572300000","103826.21","103826.22","103826.21","103826.22","0.623646","64750.8035428","64750.8035428"],["1747572360000","103826.22","103826.22","103826.21","103826.21","0.373531","38782.30982385","38782.30982385"],["1747572420000","103826.21","103826.22","103826.21","103826.21","0.328727","34130.48011154","34130.48011154"],["1747572480000","103826.21","103859.95","103826.21","103859.94","0.619057","64287.98022776","64287.98022776"],["1747572540000","103859.94","103865.5","103859.94","103865.5","0.523957","54418.39509596","54418.39509596"],["1747572600000","103865.5","103881.67","103865.49","103881.67","2.449403","254426.84623632","254426.84623632"],["1747572660000","103881.67","103881.67","103878.58","103878.59","2.288842","237763.07824683","237763.07824683"],["1747572720000","103878.59","103878.59","103878.58","103878.59","1.720084","178679.8919415","178679.8919415"],["1747572780000","103878.59","103878.59","103878.58","103878.59","1.533894","159338.73524143","159338.73524143"],["1747572840000","103878.59","103878.59","103878.58","103878.58","0.754027","78327.2577657","78327.2577657"],["1747572900000","103878.58","103878.59","103878.58","103878.59","0.851239","88425.50346596","88425.50346596"],["1747572960000","103878.59","103888.2","103878.58","103888.19","1.532953","159246.94060787","159246.94060787"],["1747573020000","103888.19","103895.72","103888.19","103895.31","3.753332","389951.76448224","389951.76448224"],["1747573080000","103895.31","103895.31","103895.3","103895.31","4.006652","416272.33211109","416272.33211109"],["1747573140000","103895.31","103895.31","103895.3","103895.3","6.089524","632672.94642848","632672.94642848"],["1747573200000","103895.3","103895.75","103895.3","103895.74","0.810913","84250.36848323","84250.36848323"],["1747573260000","103895.74","103895.75","103895.74","103895.74","0.56068","58252.26635892","58252.26635892"],["1747573320000","103895.74","103895.75","103894.38","103894.38","2.028309","210730.1647621","210730.1647621"],["1747573380000","103894.38","103894.39","103892.82","103892.82","0.95751","99479.54807508","99479.54807508"],["1747573440000","103892.82","103892.83","103892.82","103892.82","0.380547","39536.10288987","39536.10288987"],["1747573500000","103892.82","103892.83","103886.4","103886.41","0.672065","69820.5008686","69820.5008686"],["1747573560000","103886.41","103886.41","103886.4","103886.4","0.378727","39344.58650597","39344.58650597"],["1747573620000","103886.4","103886.41","103886.4","103886.4","0.51955","53974.18143546","53974.18143546"],["1747573680000","103886.4","103886.41","103886.4","103886.41","1.043018","108355.39010263","108355.39010263"],["1747573740000","103886.41","103886.41","103878.59","103878.6","1.028538","106846.28296802","106846.28296802"],["1747573800000","103878.6","103878.6","103878.59","103878.6","0.582226","60480.81860483","60480.81860483"],["1747573860000","103878.6","103878.6","103878.59","103878.6","0.584885","60757.03179142","60757.03179142"],["1747573920000","103878.6","103878.6","103878.59","103878.6","0.447091","46443.18503387","46443.18503387"],["1747573980000","103878.6","103878.6","103878.59","103878.6","0.470911","48917.5728901","48917.5728901"],["1747574040000","103878.6","103880","103878.59","103879.99","0.316215","32848.33033105","32848.33033105"],["1747574100000","103879.99","103880","103876","103876","0.377126","39175.3273167","39175.3273167"],["1747574160000","103876","103876.01","103876","103876.01","1.611927","167440.53737554","167440.53737554"],["1747574220000","103876.01","103876.01","103876","103876.01","1.900353","197401.0783377","197401.0783377"],["1747574280000","103876.01","103876.01","103876","103876.01","2.662532","276573.18712762","276573.18712762"],["1747574340000","103876.01","103876.01","103876","103876","2.487498","258391.35353261","258391.35353261"],["1747574400000","103876","103884.3","103876","103884.3","0.491432","51051.29143055","51051.29143055"],["1747574460000","103884.3","103884.3","103884.29","103884.3","0.858384","89172.61607193","89172.61607193"],["1747574520000","103884.3","103884.3","103884.29","103884.3","1.888552","196190.89260308","196190.89260308"],["1747574580000","103884.3","103884.3","103884.29","103884.3","3.083792","320357.55686265","320357.55686265"],["1747574640000","103884.3","103884.3","103884.29","103884.3","0.568235","59030.69246315","59030.69246315"],["1747574700000","103884.3","103884.3","103884.29","103884.29","0.319736","33215.54912052","33215.54912052"],["1747574760000","103884.29","103884.3","103884.29","103884.29","0.540586","56158.3955955","56158.3955955"]]}'
68
+ recorded_at: Sun, 18 May 2025 13:26:48 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/market/fills-history?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
+ - ew9SnHWD6sLkz4TlmGPwxgGTQ7jjzR1R1GJATao1w94=
20
+ Access-Timestamp:
21
+ - '1747574746008'
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:47 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '97'
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=PMfcZccqthwhEm_5.73w.HdTvKTsj7mYuRLovcKk1Vo-1747574747-1.0.1.1-7YFKY5mCwM_zgDbeda3UXyvQobxPl9iNta6x0AfGnxVAxUcTJLpsWvtdWBam5KBwE4Pe941dSjvc_SXtlJsZucJMepzMm9tORDuxMCWCP3Y;
51
+ path=/; expires=Sun, 18-May-25 13:55: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
+ - 941baeba4f3cda9e-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:25:47 GMT
63
+ recorded_with: VCR 6.3.1