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,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: '{"subaccountId":"123456","coin":"USDT","amount":"100","direction":"in","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
+ - WePTeRFFH79xAFjWBsS/RNoxwmRsp6/eRzXCFv+/SDU=
20
+ Access-Timestamp:
21
+ - '1747574722518'
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:25:24 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=qvulrrZrziBFEW3ZJhxCPCLcyXOTG04U3l_iVBNU1oc-1747574724-1.0.1.1-.kQ5KZMuGY9hlUie338VlKMpSlqi7j_SoxcBaMyJGr64zoN7NSM09PyKnHQLW6rT8UC7fT.FEl1jVSd7P7JnsbcMCcYwOm10j70CitgvsP8;
51
+ path=/; expires=Sun, 18-May-25 13:55:24 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bae276a6479cb-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"code": "00000","msg": "success","requestTime": 1683875302853,"data": {"transferId": "123456","clientOid": "x123"}}'
62
+ recorded_at: Sun, 18 May 2025 13:25:24 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/transfer-coin-info?fromType=INVALID&toType=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
+ - mUaOGo8C+N24n7XyeABW7QadShMH30wU7EY3ZfVtgBk=
20
+ Access-Timestamp:
21
+ - '1747574821571'
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:03 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '98'
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=Xh_nBrvsvdVy7lwCObO9GsjKA9o0P1HZp7nOB5VgCOE-1747574823-1.0.1.1-r6BjDnGvENyBC.Q23GrRWTHlM9AzAgWhxkhwQ9l9S0xqSAYaSyJQ.ahuJFdmPqM8xmbB35jfjeMSX5cpCtHaC81WfJzadkITU1a9gl8e7BY;
51
+ path=/; expires=Sun, 18-May-25 13:57:03 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bb0928f49755e-FRA
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:27:03 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/wallet/transfer-coin-info?fromType=spot&toType=isolated_margin
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
+ - C2PEJ20SI9hkDImar1w8KX7U6XlcDNUN3fhDLH4npKg=
20
+ Access-Timestamp:
21
+ - '1747820469545'
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 09:41:12 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=KKGRMJULM42__Atg5YBciajmqYq9QTm7R91a7txVNWQ-1747820472-1.0.1.1-d6T_CdRLODmw0wI7ly2wBqH12714TLJJ9HaYaQPo7G6A8Q7BH7wkp3MvpdPgf37B7vR3YlAl9mhdhA9jaZ.6LlU_H3dc4eBFNbjCydVbGMA;
57
+ path=/; expires=Wed, 21-May-25 10:11:12 GMT; domain=.api.bitget.com; HttpOnly;
58
+ Secure; SameSite=None
59
+ X-Frame-Options:
60
+ - SAMEORIGIN
61
+ Server:
62
+ - cloudflare
63
+ Cf-Ray:
64
+ - 94331ddcc9092e37-MRS
65
+ body:
66
+ encoding: ASCII-8BIT
67
+ string: '{"code":"00000","msg":"success","requestTime":1747820471929,"data":["AGLD","LVL","SCR","GLM","RAY","NEAR","AUDIO","BBO","WLD","ZORA","HNT","ETHFI","ZRO","VELODROME","HALO","GME","RBN","MDAO","ZRX","WING","BCH","GPTOLD","JST","CEL","HOT","GMT","BEER","AR","TSTBSC","GMX","CHILLGUY","SEI","BB","JTO","FLM","PROMPT","VELA","GNS","VANRY","THE","BIGTIME","S","CFX","T","BABYDOGE","W","X","SFP","ACA","ACE","JUP","ACH","BEL","MINA","TIA","VTHO","DRIFT","RED","ARBINU","ACT","WOO","ACX","BLUR","REN","STRK","ADA","STORJ","VIRTUAL","STARL","LADYS","RARE","PAXG","REZ","CHR","ELX","WAVES","CHZ","XRP","FLOKI","JASMY","BGB","FIDA","SAND","OCEAN","UMA","COOKIE","ENA","MUBARAK","ENJ","PEAQ","SOLV","SOLS","OAX","GRT","RATS","BABY","GRV","ENS","KAIA","MYRO","UNI","DEGEN","TLM","POGAI","LUNC","LUNA","XTZ","ZYB","FORM","EOS","BIO","RIF","WOJAK","SKL","SLERF","GTC","BRETT","HOOK","FLOW","MEME","SLP","NXPC","ID","DOG","GUN","IO","IP","DOT","1INCH","CHESS","TON","INIT","PNUT","TURBO","UNFI","FTM","FTN","MAV","FTT","RLC","PHB","DPX","ARKM","ATOM","PENDLE","QUICK","BLZ","ORBS","MBL","SNT","SNX","RLY","TAIKO","L3","API3","BMT","ROSE","COW","GLMR","SATS","SOL","ETC","BNB","OGN","CELR","ETH","NEO","CELO","AUCTION","BADGER","LAYER","MAVIA","HIGH","TRB","ALT","NEIROCTO","BNX","ORDI","TRU","KAON","GRASS","ME","NFP","TRX","SIGN","MDT","PUFFER","AERGO","AMP","ORCA","MOCA","HIFI","USTC","BERA","RON","VANA","HIPPO","EGLD","PLUME","KAS","TRUMP","MEW","SPELL","PUNDIX","LOOKS","FXS","CRO","CRV","BAKE","FLUX","ALCH","RPL","LDO","MAGIC","QNT","ALICE","OG","AIDOGE","OM","OP","NIL","ZEREBRO","TUT","APE","SSV","PI","ARPA","MATIC","APT","STG","SHIB","IOTX","FRONT","KDA","PIXFI","STO","STX","DENT","PYTH","AI16Z","MBOX","BLAST","BSV","IOST","SUI","CAKE","BAND","POL","SUN","ASTR","BTC","TWT","RSR","PARTI","ARB","REEF","AIXBT","ARK","LOKA","KEY","ONE","RENDER","ANKR","SUSHI","ONT","DYM","MANA","HYPER","NMR","MKR","ATH","LIT","ICP","TLOS","TNSR","POLYX","KMNO","XAI","LOOM","IMGNAI","DOGE","DUSK","ALPHA","SXP","HBAR","BWB","SXT","PEPE","ONDO","DOGS","CTSI","KAVA","C98","OSMO","SHELL","NTRN","MEMEFI","SYN","NOM","COCOS","STRAX","NOT","GAL","GAS","BOME","SONIC","XCN","WAL","ORN","MASK","AAVE","OBOL","BONK","PERP","XDC","BONE","BOND","MOODENG","MOG","HYPE","LQTY","BICO","HEI","PIXEL","ZETA","MELANIA","HMSTR","YGG","PEOPLE","FARTCOIN","AXS","ZIL","SYRUP","MONG","XEN","WCT","COMP","HAEDAL","UXLINK","RUNE","PENGU","ALPINE","LEVER","IDEX","ZK","AVAX","LISTA","USUAL","ZKJ","GOAT","BANANA","CARV","KNC","CATS","PROM","OMNI1","PONKE","OVR","CATI","LPT","ORDER","KAITO","RDNT","XAUT","PORTO","PYR","AIOLD","WAXP","ULTI","DAI","SWARMS","AVAIL","FET","DAR","LRC","CORE","VINE","TAO","MTL","ALPACA","USDT","OXT","SAGA","EDU","JOE","LSK","BEAM","IMX","WIF","USDE","LTC","USDC","METIS","WIN","STETH","INJ","DYDX","AGIX","MUBI","LINA","KERNEL","GRIFFAIN","XLM","LINK","QTUM","CYBER","SUPER","EIGEN","KSM","FIL","STMX","RNDR","GALA","VIB","BAN","FIS","RAD","BAT","MOVE","MOVR","COTI"]}'
68
+ recorded_at: Wed, 21 May 2025 09:41:11 GMT
69
+ 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/transfer
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"fromAccount":"INVALID","toAccount":"INVALID","coin":"INVALID","amount":"100","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+CirsR8ayJU3lFvwGr/x1CMUAaLjwOxaQbsaX41G1o=
20
+ Access-Timestamp:
21
+ - '1747574786288'
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:27 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '96'
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=EI_drHzYI12DOyxkjG8zBZJVScy_o231YtH5Qq7rakA-1747574787-1.0.1.1-WG8xRT5OvzHI9H6HG1VYIPRy8tJwGRJf58_NugQt6V3D8loq6mlr2wDuUxscN79ZylE8wlOgWe13L27bXyMh64QVE7FYa_mTO5vDZMMYqQU;
51
+ path=/; expires=Sun, 18-May-25 13:56:27 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bafb60832dc7a-FRA
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:26:27 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/transfer
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"fromAccount":"spot","toAccount":"isolated_margin","coin":"USDT","amount":"100","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
+ - wAtjPPrKvLPxOT3LW1k6bdkxfeeMhwMwJapkgnkx8X4=
20
+ Access-Timestamp:
21
+ - '1747574755594'
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:25:57 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '96'
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=8aJ0eY3b74tksMi3XRyHa1xUjY7cfefEvN_9Fq2HxPM-1747574757-1.0.1.1-Sg4GpJyI_H4orBSAlZiQvNYKlOfjGUBGtAd2DetJRXawVAZpJhXImwPvdGdvmtLmEmKOq4tQ9ReDQFAYF.NeEmqTUfZ7.v51RtZw_GtQwVs;
51
+ path=/; expires=Sun, 18-May-25 13:55:57 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941baef62e690b83-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"code":"00000","msg":"success","requestTime":1747574756972,"data":{"transferId":"123456789", "clientOid":"123456789"}}'
62
+ recorded_at: Sun, 18 May 2025 13:25:57 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/withdrawal-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
+ - Ra/mh5nrgOklwcmqGqt6YQu5k25fPqTR9mjW33LuTnQ=
20
+ Access-Timestamp:
21
+ - '1747574811987'
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:53 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=TKPS90RYkRY8v7Cyd0.5WfOY_waOmwA7w7ePCetYDa8-1747574813-1.0.1.1-NBK7xW17TOVGJUyJcuo9PJamO2FNeo8fAj8u7aK1CcXJtwfOz4f_wYHklWjygLCaXKHoNQJFWmZtem.Ww_SjAGlYRxVhpiO5deoelkeyCTU;
51
+ path=/; expires=Sun, 18-May-25 13:56:53 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 941bb056b8c28ea8-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:26:53 GMT
63
+ 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/wallet/withdrawal-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
+ - kdOTqBvdL+ps4E/BgAOICQylXsP3Sfnaf5U+4MQ/o7U=
20
+ Access-Timestamp:
21
+ - '1747574791078'
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:32 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=tTNDEOamuUt00enjQ.ebpUNLkkL4ajHuZ3azfinwmA4-1747574792-1.0.1.1-SHul33KY0.WXWOQU8_C9ZVD0px3GhG_cv4E8wve.Z2zRW8x24qKet2U3uvBaGPrZqBh0eIfuOL2qZ7eZYb6NPLZU3ZD9GxLYiClOzU3SP7o;
55
+ path=/; expires=Sun, 18-May-25 13:56:32 GMT; domain=.api.bitget.com; HttpOnly;
56
+ Secure; SameSite=None
57
+ X-Frame-Options:
58
+ - SAMEORIGIN
59
+ Server:
60
+ - cloudflare
61
+ Cf-Ray:
62
+ - 941bafd3fed03383-FRA
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: '{"code": "00000","msg":"success","requestTime":1654507973411,"data":[{"orderId": "1","tradeId": "1","coin": "USDT","dest": "dest","clientOid": "123","type": "withdraw","tag": "","size": "10.00000000","fee": "-1.00000000","status": "success","toAddress": "1","fromAddress": "2","confirm": "100","chain": "erc20","cTime": "1653290769222","uTime": "1653290769222"}]}'
66
+ recorded_at: Sun, 18 May 2025 13:26:32 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/wallet/withdrawal
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"coin":"INVALID","chain":"INVALID","address":"0x1234567890abcdef","amount":"100","tag":null,"remark":null,"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
+ - ZhPvVq9GuISoIE08gB7r31iEyzDti8ShPyLWfSBWSTg=
20
+ Access-Timestamp:
21
+ - '1747574717832'
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:19 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '119'
39
+ Connection:
40
+ - keep-alive
41
+ X-Mbx-Used-Remain-Limit:
42
+ - '0'
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=Fr4JR5_VZRKXJHjWyFzliCQc8_QZ6jPUTPn.NCyU4h4-1747574719-1.0.1.1-nq0rZxfArG5X9gHttYBfuXBbFRSTIvm7SkhlHBad.gz7jnj1KM1JyDkL1Xa3540bHQOU2bX7ZmG4na__kY3SolXvSw_0.fGq7sWfYl399CQ;
51
+ path=/; expires=Sun, 18-May-25 13:55: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
+ - 941bae0a19a6f5e6-AMS
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ recorded_at: Sun, 18 May 2025 13:25:19 GMT
63
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bitget.com/api/v2/spot/wallet/withdrawal
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"address":"0x1234567890abcdef","chain":"TRC20","coin":"USDT","size":100,"transferType":"on_chain"}'
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
+ - eggJ++hvN2UV7VmcrFuHhRpuUQCHCtnUgJGHOOYkSEA=
20
+ Access-Timestamp:
21
+ - '1747796115243'
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 02:55:15 GMT
35
+ Content-Type:
36
+ - application/json
37
+ Content-Length:
38
+ - '119'
39
+ Connection:
40
+ - keep-alive
41
+ X-Mbx-Used-Remain-Limit:
42
+ - '0'
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=P4VBYZgVaR7WTjshobrhWOP3g5ZJmpzgjb7qA0R.Yxw-1747796115-1.0.1.1-SIMNs0eifA.at2vk6xOC8SM9gsuuZ1hzQenivgyaCBFnICgmwxel59NRJeR3ror.wLjYj9bw7Qq33_DDlgvWwC.K4IMgnN1qzBvUtgHTHaE;
51
+ path=/; expires=Wed, 21-May-25 03:25:15 GMT; domain=.api.bitget.com; HttpOnly;
52
+ Secure; SameSite=None
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ Server:
56
+ - cloudflare
57
+ Cf-Ray:
58
+ - 9430cb394ed8d5d3-SYD
59
+ body:
60
+ encoding: UTF-8
61
+ string: '
62
+ {
63
+ "code": "00000",
64
+ "msg": "success",
65
+ "requestTime": 1695808949356,
66
+ "data": {
67
+ "orderId": "123",
68
+ "clientOid": "123"
69
+ }
70
+ }
71
+ '
72
+ recorded_at: Wed, 21 May 2025 02:55:15 GMT
73
+ recorded_with: VCR 6.3.1
data/test/gemspec_test.rb CHANGED
@@ -27,6 +27,10 @@ require_relative './helper'
27
27
  it "ships the gemspec which names it" do
28
28
  _(spec.files).must_include("#{name}.gemspec")
29
29
  end
30
+
31
+ it "ships the cassettes with the tests" do
32
+ _(spec.files).must_include('test/fixtures/vcr_cassettes/v2/spot/public/coins-when_coin_is_supplied.yml')
33
+ end
30
34
  end
31
35
  end
32
36