bitget.rb 0.6.2 → 0.6.3
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.
- checksums.yaml +4 -4
- data/README.md +15 -4
- data/lib/Bitget/VERSION.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7bbb2026a29cd85153418b65cb4cdddd9bc29b06873ceec95cc455894922cd2a
|
|
4
|
+
data.tar.gz: ef489e8f1966705d4e3e10c7f8d558284c0847e9d5b2e5e5b42f06ac43b6dafe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 672c0fbd1f0f756fbba640997f340c009ca218bc008078988365c511c7f427a894068b8470cf14d147fa3827f453e3f2c5881be9df35edbb052370992d5e59a3
|
|
7
|
+
data.tar.gz: e7b2c3e7253cf737b909542da4a5c1397164fe3770bd7b90490fb9ffb0a9275c7ab6204f00e1127646462279d6a4bff220a271bf073e8ea20b8a410691617a7a
|
data/README.md
CHANGED
|
@@ -7,21 +7,27 @@ Access the Bitget API with Ruby.
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
10
11
|
```ruby
|
|
11
|
-
|
|
12
|
+
gem 'bitget.rb'
|
|
12
13
|
```
|
|
14
|
+
|
|
13
15
|
And then execute:
|
|
16
|
+
|
|
14
17
|
```bash
|
|
15
|
-
|
|
18
|
+
$ bundle
|
|
16
19
|
```
|
|
20
|
+
|
|
17
21
|
Or install it yourself as:
|
|
22
|
+
|
|
18
23
|
```bash
|
|
19
|
-
|
|
24
|
+
$ gem install bitget.rb
|
|
20
25
|
```
|
|
21
26
|
|
|
22
27
|
## Usage
|
|
23
28
|
|
|
24
29
|
### Setup
|
|
30
|
+
|
|
25
31
|
```ruby
|
|
26
32
|
bitget_client = Bitget::Client.new(
|
|
27
33
|
api_key: 'api_key0',
|
|
@@ -90,6 +96,7 @@ yours, which is what lets a StringIO logger in a test, or a levelled one, or som
|
|
|
90
96
|
is not a Logger at all, work as well as the above.
|
|
91
97
|
|
|
92
98
|
### Retrieve Info on All the Coins Traded
|
|
99
|
+
|
|
93
100
|
```ruby
|
|
94
101
|
bitget_client.spot_public_coins
|
|
95
102
|
# =>
|
|
@@ -117,6 +124,7 @@ bitget_client.spot_public_coins
|
|
|
117
124
|
```
|
|
118
125
|
|
|
119
126
|
### Retrieve Info for One of the Coins Traded
|
|
127
|
+
|
|
120
128
|
```ruby
|
|
121
129
|
bitget_client.spot_public_coins(coin: 'BTC')
|
|
122
130
|
# =>
|
|
@@ -157,19 +165,22 @@ bitget_client.spot_public_coins(coin: 'BTC')
|
|
|
157
165
|
```
|
|
158
166
|
|
|
159
167
|
### Get Account Information
|
|
168
|
+
|
|
160
169
|
```ruby
|
|
161
170
|
bitget_client.spot_account_info
|
|
162
171
|
```
|
|
163
172
|
|
|
164
173
|
### Get Account Assets
|
|
174
|
+
|
|
165
175
|
```ruby
|
|
166
176
|
bitget_client.spot_account_assets
|
|
167
177
|
```
|
|
178
|
+
|
|
168
179
|
```ruby
|
|
169
180
|
bitget_client.spot_account_assets(coin: 'BTC')
|
|
170
181
|
```
|
|
171
182
|
|
|
172
|
-
See https://www.bitget.com/api-doc/spot/intro for further information on endpoint arguments
|
|
183
|
+
See https://www.bitget.com/api-doc/spot/intro for further information on endpoint arguments.
|
|
173
184
|
|
|
174
185
|
## Contributing
|
|
175
186
|
|
data/lib/Bitget/VERSION.rb
CHANGED