Skip to content

Commit 9a20211

Browse files
authored
Merge pull request #27 from binance/rc-v1.7.1
Release v1.7.1
2 parents 1621b2e + 78d4f5e commit 9a20211

File tree

6 files changed

+43
-39
lines changed

6 files changed

+43
-39
lines changed

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
ruby: [3.0, 3.1, 3.2, 3.3]
17+
ruby: ['3.0', '3.1', '3.2', '3.3']
1818

1919
runs-on: ubuntu-latest
2020

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.7.1 - 2025-01-13
4+
### Changed
5+
- Updated documentation links.
6+
37
## 1.7.0 -2024-12-05
48
### Added
59
- Convert endpoints:

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
binance-connector-ruby (1.7.0)
4+
binance-connector-ruby (1.7.1)
55
faraday (~> 1.8)
66
websocket-eventmachine-client (~> 1.3)
77

lib/binance/spot/market.rb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Market
1515
#
1616
# GET /api/v3/ping
1717
#
18-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#test-connectivity
18+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#test-connectivity
1919
def ping
2020
@session.public_request(path: '/api/v3/ping')
2121
end
@@ -24,7 +24,7 @@ def ping
2424
#
2525
# GET /api/v3/time
2626
#
27-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#check-server-time
27+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time
2828
def time
2929
@session.public_request(path: '/api/v3/time')
3030
end
@@ -38,7 +38,7 @@ def time
3838
# @option kwargs [string] :permissions
3939
# @option kwargs [Boolean] :feature Controls whether the content of the permissionSets field is populated or not. Defaults to true
4040
# @option kwargs [string] :symbolStatus Filters symbols that have this tradingStatus. Valid values: TRADING, HALT, BREAK. Cannot be used in combination with symbols or symbol.
41-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#exchange-information
41+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information
4242
def exchange_info(symbol: nil, symbols: nil, permissions: nil)
4343
if symbols.is_a?(Array)
4444
symbols = symbols.map { |v| "%22#{v}%22" }.join(',')
@@ -61,7 +61,7 @@ def exchange_info(symbol: nil, symbols: nil, permissions: nil)
6161
# @param symbol [String] the symbol
6262
# @param kwargs [Hash]
6363
# @option kwargs [Integer] :limit Default 100; max 1000. Valid limits:[5, 10, 20, 50, 100, 500, 1000, 5000]
64-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#order-book
64+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book
6565
def depth(symbol:, **kwargs)
6666
Binance::Utils::Validation.require_param('symbol', symbol)
6767

@@ -78,7 +78,7 @@ def depth(symbol:, **kwargs)
7878
# @param symbol [String] the symbol
7979
# @param kwargs [Hash]
8080
# @option kwargs [Integer] :limit Default 500; max 1000.
81-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#recent-trades-list
81+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list
8282
def trades(symbol:, **kwargs)
8383
Binance::Utils::Validation.require_param('symbol', symbol)
8484

@@ -98,7 +98,7 @@ def trades(symbol:, **kwargs)
9898
# @param kwargs [Hash]
9999
# @option kwargs [Integer] :limit Default 500; max 1000.
100100
# @option kwargs [Integer] :fromId Trade id to fetch from. Default gets most recent trades.
101-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#old-trade-lookup
101+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#old-trade-lookup
102102
def historical_trades(symbol:, **kwargs)
103103
Binance::Utils::Validation.require_param('symbol', symbol)
104104

@@ -120,7 +120,7 @@ def historical_trades(symbol:, **kwargs)
120120
# @option kwargs [Integer] :endTime Timestamp in ms to get aggregate trades until INCLUSIVE.
121121
# @option kwargs [Integer] :fromId Trade id to fetch from. Default gets most recent trades.
122122
# @option kwargs [Integer] :limit Default 500; max 1000.
123-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#compressedaggregate-trades-list
123+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list
124124
def agg_trades(symbol:, **kwargs)
125125
Binance::Utils::Validation.require_param('symbol', symbol)
126126

@@ -144,7 +144,7 @@ def agg_trades(symbol:, **kwargs)
144144
# @option kwargs [Integer] :endTime Timestamp in ms to get aggregate trades until INCLUSIVE.
145145
# @option kwargs [String] :timeZone Default: 0 (UTC)
146146
# @option kwargs [Integer] :limit Default 500; max 1000.
147-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#klinecandlestick-data
147+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data
148148
def klines(symbol:, interval:, **kwargs)
149149
Binance::Utils::Validation.require_param('symbol', symbol)
150150
Binance::Utils::Validation.require_param('interval', interval)
@@ -171,7 +171,7 @@ def klines(symbol:, interval:, **kwargs)
171171
# @option kwargs [Integer] :endTime
172172
# @option kwargs [String] :timeZone Default: 0 (UTC)
173173
# @option kwargs [Integer] :limit Default 500; max 1000.
174-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#uiklines
174+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#uiklines
175175
def ui_klines(symbol:, interval:, **kwargs)
176176
Binance::Utils::Validation.require_param('symbol', symbol)
177177
Binance::Utils::Validation.require_param('interval', interval)
@@ -192,7 +192,7 @@ def ui_klines(symbol:, interval:, **kwargs)
192192
# GET /api/v3/avgPrice
193193
#
194194
# @param symbol [String] the symbol
195-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#current-average-price
195+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#current-average-price
196196
def avg_price(symbol:)
197197
Binance::Utils::Validation.require_param('symbol', symbol)
198198

@@ -209,7 +209,7 @@ def avg_price(symbol:)
209209
# GET /api/v3/ticker/24hr
210210
#
211211
# @param symbol [String] the symbol
212-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#24hr-ticker-price-change-statistics
212+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics
213213
def ticker_24hr(symbol: nil)
214214
@session.public_request(
215215
path: '/api/v3/ticker/24hr',
@@ -228,7 +228,7 @@ def ticker_24hr(symbol: nil)
228228
# @option kwargs [string] :symbols
229229
# @option kwargs [String] :timeZone Default: 0 (UTC)
230230
# @option kwargs [String] :type Supported values: FULL or MINI. Default: FULL
231-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#trading-day-ticker
231+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#trading-day-ticker
232232
def ticker_trading_day(symbol: nil, symbols: nil, **kwargs)
233233
raise Binance::DuplicatedParametersError.new('symbol', 'symbols') unless symbols.nil? || symbol.nil?
234234

@@ -253,7 +253,7 @@ def ticker_trading_day(symbol: nil, symbols: nil, **kwargs)
253253
# GET /api/v3/ticker/price
254254
#
255255
# @param symbol [String] the symbol
256-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#symbol-price-ticker
256+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker
257257
def ticker_price(symbol: nil)
258258
@session.public_request(
259259
path: '/api/v3/ticker/price',
@@ -268,7 +268,7 @@ def ticker_price(symbol: nil)
268268
# GET /api/v3/ticker/bookTicker
269269
#
270270
# @param symbol [String] the symbol
271-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#symbol-order-book-ticker
271+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker
272272
def book_ticker(symbol: nil)
273273
@session.public_request(
274274
path: '/api/v3/ticker/bookTicker',
@@ -280,10 +280,10 @@ def book_ticker(symbol: nil)
280280
#
281281
# Best price/qty on the order book for a symbol or symbols.
282282
#
283-
# GET /api/v3/ticker/bookTicker
283+
# GET /api/v3/ticker
284284
#
285285
# @param symbol [String] the symbol
286-
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#symbol-order-book-ticker
286+
# @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics
287287
def ticker(symbol: nil, symbols: nil, windowSize: '1d')
288288
raise Binance::DuplicatedParametersError.new('symbol', 'symbols') unless symbols.nil? || symbol.nil?
289289

0 commit comments

Comments
 (0)