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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitget.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -47,6 +47,105 @@ files:
47
47
  - test/Error_test.rb
48
48
  - test/V2/Client_test.rb
49
49
  - test/VERSION_test.rb
50
+ - test/fixtures/vcr_cassettes/v2/spot/account/assets-when_an_error_occurs.yml
51
+ - test/fixtures/vcr_cassettes/v2/spot/account/assets.yml
52
+ - test/fixtures/vcr_cassettes/v2/spot/account/bills-when_an_error_occurs.yml
53
+ - test/fixtures/vcr_cassettes/v2/spot/account/bills.yml
54
+ - test/fixtures/vcr_cassettes/v2/spot/account/bleradaf-info.yml
55
+ - test/fixtures/vcr_cassettes/v2/spot/account/deduct-info-when_an_error_occurs.yml
56
+ - test/fixtures/vcr_cassettes/v2/spot/account/deduct-info.yml
57
+ - test/fixtures/vcr_cassettes/v2/spot/account/info-when_an_error_occurs.yml
58
+ - test/fixtures/vcr_cassettes/v2/spot/account/info.yml
59
+ - test/fixtures/vcr_cassettes/v2/spot/account/sub-main-trans-record-when_an_error_occurs.yml
60
+ - test/fixtures/vcr_cassettes/v2/spot/account/sub-main-trans-record.yml
61
+ - test/fixtures/vcr_cassettes/v2/spot/account/subaccount-assets-when_an_error_occurs.yml
62
+ - test/fixtures/vcr_cassettes/v2/spot/account/subaccount-assets.yml
63
+ - test/fixtures/vcr_cassettes/v2/spot/account/switch-deduct-when_an_error_occurs.yml
64
+ - test/fixtures/vcr_cassettes/v2/spot/account/switch-deduct.yml
65
+ - test/fixtures/vcr_cassettes/v2/spot/account/transferRecords-when_an_error_occurs.yml
66
+ - test/fixtures/vcr_cassettes/v2/spot/account/transferRecords.yml
67
+ - test/fixtures/vcr_cassettes/v2/spot/market/candles-when_an_error_occurs.yml
68
+ - test/fixtures/vcr_cassettes/v2/spot/market/candles.yml
69
+ - test/fixtures/vcr_cassettes/v2/spot/market/fills-history-when_an_error_occurs.yml
70
+ - test/fixtures/vcr_cassettes/v2/spot/market/fills-history.yml
71
+ - test/fixtures/vcr_cassettes/v2/spot/market/fills-when_an_error_occurs.yml
72
+ - test/fixtures/vcr_cassettes/v2/spot/market/fills.yml
73
+ - test/fixtures/vcr_cassettes/v2/spot/market/history-candles-when_an_error_occurs.yml
74
+ - test/fixtures/vcr_cassettes/v2/spot/market/history-candles.yml
75
+ - test/fixtures/vcr_cassettes/v2/spot/market/merge-depth-when_an_error_occurs.yml
76
+ - test/fixtures/vcr_cassettes/v2/spot/market/merge-depth.yml
77
+ - test/fixtures/vcr_cassettes/v2/spot/market/orderbook-when_an_error_occurs.yml
78
+ - test/fixtures/vcr_cassettes/v2/spot/market/orderbook.yml
79
+ - test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_an_error_occurs.yml
80
+ - test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_symbol_is_not_supplied.yml
81
+ - test/fixtures/vcr_cassettes/v2/spot/market/tickers-when_symbol_is_supplied.yml
82
+ - test/fixtures/vcr_cassettes/v2/spot/market/vip-fee-rate-when_an_error_occurs.yml
83
+ - test/fixtures/vcr_cassettes/v2/spot/market/vip-fee-rate.yml
84
+ - test/fixtures/vcr_cassettes/v2/spot/public/coins-when_an_error_occurs.yml
85
+ - test/fixtures/vcr_cassettes/v2/spot/public/coins-when_coin_is_not_supplied.yml
86
+ - test/fixtures/vcr_cassettes/v2/spot/public/coins-when_coin_is_supplied.yml
87
+ - test/fixtures/vcr_cassettes/v2/spot/public/coins-when_error_occurs.yml
88
+ - test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_an_error_occurs.yml
89
+ - test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_symbol_is_not_supplied.yml
90
+ - test/fixtures/vcr_cassettes/v2/spot/public/symbols-when_symbol_is_supplied.yml
91
+ - test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-order-when_an_error_occurs.yml
92
+ - test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-order.yml
93
+ - test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-plan-order-when_an_error_occurs.yml
94
+ - test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-plan-order.yml
95
+ - test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-replace-order-when_an_error_occurs.yml
96
+ - test/fixtures/vcr_cassettes/v2/spot/trade/batch-cancel-replace-order.yml
97
+ - test/fixtures/vcr_cassettes/v2/spot/trade/batch-orders-when_an_error_occurs.yml
98
+ - test/fixtures/vcr_cassettes/v2/spot/trade/batch-orders.yml
99
+ - test/fixtures/vcr_cassettes/v2/spot/trade/cancel-order-when_an_error_occurs.yml
100
+ - test/fixtures/vcr_cassettes/v2/spot/trade/cancel-order.yml
101
+ - test/fixtures/vcr_cassettes/v2/spot/trade/cancel-plan-order-when_an_error_occurs.yml
102
+ - test/fixtures/vcr_cassettes/v2/spot/trade/cancel-plan-order.yml
103
+ - test/fixtures/vcr_cassettes/v2/spot/trade/cancel-replace-order-when_an_error_occurs.yml
104
+ - test/fixtures/vcr_cassettes/v2/spot/trade/cancel-replace-order.yml
105
+ - test/fixtures/vcr_cassettes/v2/spot/trade/cancel-symbol-order-when_an_error_occurs.yml
106
+ - test/fixtures/vcr_cassettes/v2/spot/trade/cancel-symbol-order.yml
107
+ - test/fixtures/vcr_cassettes/v2/spot/trade/current-plan-order-when_an_error_occurs.yml
108
+ - test/fixtures/vcr_cassettes/v2/spot/trade/current-plan-order.yml
109
+ - test/fixtures/vcr_cassettes/v2/spot/trade/fills-when_an_error_occurs.yml
110
+ - test/fixtures/vcr_cassettes/v2/spot/trade/fills.yml
111
+ - test/fixtures/vcr_cassettes/v2/spot/trade/history-orders-when_an_error_occurs.yml
112
+ - test/fixtures/vcr_cassettes/v2/spot/trade/history-orders.yml
113
+ - test/fixtures/vcr_cassettes/v2/spot/trade/history-plan-order-when_an_error_occurs.yml
114
+ - test/fixtures/vcr_cassettes/v2/spot/trade/history-plan-order.yml
115
+ - test/fixtures/vcr_cassettes/v2/spot/trade/modify-plan-order-when_an_error_occurs.yml
116
+ - test/fixtures/vcr_cassettes/v2/spot/trade/modify-plan-order.yml
117
+ - test/fixtures/vcr_cassettes/v2/spot/trade/orderInfo-when_an_error_occurs.yml
118
+ - test/fixtures/vcr_cassettes/v2/spot/trade/orderInfo.yml
119
+ - test/fixtures/vcr_cassettes/v2/spot/trade/place-order-when_an_error_occurs.yml
120
+ - test/fixtures/vcr_cassettes/v2/spot/trade/place-order.yml
121
+ - test/fixtures/vcr_cassettes/v2/spot/trade/place-plan-order-when_an_error_occurs.yml
122
+ - test/fixtures/vcr_cassettes/v2/spot/trade/place-plan-order.yml
123
+ - test/fixtures/vcr_cassettes/v2/spot/trade/plan-sub-order-when_an_error_occurs.yml
124
+ - test/fixtures/vcr_cassettes/v2/spot/trade/plan-sub-order.yml
125
+ - test/fixtures/vcr_cassettes/v2/spot/trade/unfilled-orders-when_an_error_occurs.yml
126
+ - test/fixtures/vcr_cassettes/v2/spot/trade/unfilled-orders.yml
127
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/cancel-withdrawal-when_an_error_occurs.yml
128
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/cancel-withdrawal.yml
129
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-address-when_an_error_occurs.yml
130
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-address.yml
131
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-records-when_an_error_occurs.yml
132
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/deposit-records.yml
133
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/modify-deposit-account-when_an_error_occurs.yml
134
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/modify-deposit-account.yml
135
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-address-when_an_error_occurs.yml
136
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-address.yml
137
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-records-when_an_error_occurs.yml
138
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-deposit-records.yml
139
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-transfer-when_an_error_occurs.yml
140
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/subaccount-transfer.yml
141
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-coin-info-when_an_error_occurs.yml
142
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-coin-info.yml
143
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/transfer-when_an_error_occurs.yml
144
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/transfer.yml
145
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-records-when_an_error_occurs.yml
146
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-records.yml
147
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal-when_an_error_occurs.yml
148
+ - test/fixtures/vcr_cassettes/v2/spot/wallet/withdrawal.yml
50
149
  - test/gemspec_test.rb
51
150
  - test/helper.rb
52
151
  homepage: http://github.com/thoran/bitget