bitget.rb 0.3.1 → 0.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d2751725e270a3466b6fb00e665fefcc824fad5817f45f6805e4f2abe4ce4ed
4
- data.tar.gz: 69e156c08596016abae4b32252da43a687f487740f0a347a0c6dc605e295da5b
3
+ metadata.gz: 5b63d59a8aebe65c300d42fe6dec98145f4efe93d21f7054f0ec9e076031dca9
4
+ data.tar.gz: 795de1366e0ddf3194c5a43b1ccac0910b7acc8ad2798982957cd350b10d8483
5
5
  SHA512:
6
- metadata.gz: 56798524a003cfa167d2993dcfc59fb2fc76788e6260495577c677ed00faeebab1f1f48495a1d1fd1064ff909f2b79867a618fa9179a7441f8ce8dc000989f8c
7
- data.tar.gz: 4108e6fbc9dc198054605cefd79d51ca9cd02fdb3fe3f96c43b29e4f67c399bffe481fbe4bbee6aaeff87a05ccf94461f91da14e894a286b33f06503dfdd3ec7
6
+ metadata.gz: 4d6585e095c3a376910d5c0f282ccf13e10868fd7dcffb944bfa9ce01ac21ecd741827e0fce768ffa7d6467a5d002e7dddf14a03f5d351d33e8dc87dfdfd1992
7
+ data.tar.gz: ba02b1df209e591007cc18901448c711dfe630085b01796dd67d617db3fd4331c5f233ea1761c59789683502acf0e5df2367242f0f33b29e7675239a1d93abf0
data/README.md CHANGED
@@ -23,7 +23,7 @@ Or install it yourself as:
23
23
 
24
24
  ### Setup
25
25
  ```ruby
26
- bitget_client ||= Bitget::Client.new(
26
+ bitget_client = Bitget::Client.new(
27
27
  api_key: 'api_key0',
28
28
  api_secret: 'api_secret0',
29
29
  api_passphrase: 'api_passphrase0'
@@ -97,9 +97,24 @@ bitget_client.spot_public_coins(coin: 'BTC')
97
97
  # }
98
98
  ```
99
99
 
100
+ ### Get Account Information
101
+ ```ruby
102
+ bitget_client.spot_account_info
103
+ ```
104
+
105
+ ### Get Account Assets
106
+ ```ruby
107
+ bitget_client.spot_account_assets
108
+ ```
109
+ ```ruby
110
+ bitget_client.spot_account_assets(coin: 'BTC')
111
+ ```
112
+
113
+ See https://www.bitget.com/api-doc/spot/intro for further information on endpoint arguments
114
+
100
115
  ## Contributing
101
116
 
102
- 1. Fork it ( https://github.com/thoran/bitget.rb/fork )
117
+ 1. Fork it (https://github.com/thoran/bitget.rb/fork)
103
118
  2. Create your feature branch (`git checkout -b my-new-feature`)
104
119
  3. Commit your changes (`git commit -am 'Add some feature'`)
105
120
  4. Push to the branch (`git push origin my-new-feature`)
data/bitget.rb.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |spec|
4
4
  spec.name = 'bitget.rb'
5
5
 
6
6
  spec.version = Bitget::VERSION
7
- spec.date = '2025-04-02'
7
+ spec.date = '2025-05-26'
8
8
 
9
9
  spec.summary = "Access the Bitget API with Ruby."
10
10
  spec.description = "Access the Bitget API with Ruby."