binance-connector-ruby 1.7.0 → 1.7.1

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: 7772695ac930d9fc5f8be1a2c90acea825f57d9a7bab222fa0bc98eda4ad4b68
4
- data.tar.gz: 4eebab3405f8a25a76e59bdf25ff42efad8d04d74571e4aa65201d9c50f397f0
3
+ metadata.gz: 1b448b0cb73b0fbe3eb12d41830d72590539c6ae27b4697d7c9b6d3d5af0b0b0
4
+ data.tar.gz: 8ff261ede671030d907d0fd7365f406ce9880fc276386267f493220b1fd534fb
5
5
  SHA512:
6
- metadata.gz: 16d3f195fb8e3a86e79d781320a6ca7646457e4e4f85e6852c8ef309004336215b56b800a98e306179c80cbe494a1bf7f7a15c778bdb9450cd9bc8b3d9486903
7
- data.tar.gz: 98b92b80f7965279756cb7e63a29c15d18cd44d49b4322800e189b24901ec029b02c085694d41279168d931d8b3e2f72df036ae906a9ddf78cc14b15e319e6ce
6
+ metadata.gz: d99941f064ad0efff71b122d530b7b42361e4c80a7096a07ab64694a4702def1c0e613cbe3218acef10c87ff5a85eb88e641a2a8e8ff85fc3112070760c5237a
7
+ data.tar.gz: 587bf09d4ac3df83601e6ff8311cfcc26313d3b3c09849f871af3c49fd29a97dd0cf0398c8f2c4eea8fae4e43951a22c941c004828539bea89f47099debf948c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.7.1 - 2025-01-13
4
+ ### Changed
5
+ - Updated documentation links.
6
+
3
7
  ## 1.7.0 -2024-12-05
4
8
  ### Added
5
9
  - Convert endpoints:
@@ -15,7 +15,7 @@ module Binance
15
15
  #
16
16
  # GET /api/v3/ping
17
17
  #
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
19
19
  def ping
20
20
  @session.public_request(path: '/api/v3/ping')
21
21
  end
@@ -24,7 +24,7 @@ module Binance
24
24
  #
25
25
  # GET /api/v3/time
26
26
  #
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
28
28
  def time
29
29
  @session.public_request(path: '/api/v3/time')
30
30
  end
@@ -38,7 +38,7 @@ module Binance
38
38
  # @option kwargs [string] :permissions
39
39
  # @option kwargs [Boolean] :feature Controls whether the content of the permissionSets field is populated or not. Defaults to true
40
40
  # @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
42
42
  def exchange_info(symbol: nil, symbols: nil, permissions: nil)
43
43
  if symbols.is_a?(Array)
44
44
  symbols = symbols.map { |v| "%22#{v}%22" }.join(',')
@@ -61,7 +61,7 @@ module Binance
61
61
  # @param symbol [String] the symbol
62
62
  # @param kwargs [Hash]
63
63
  # @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
65
65
  def depth(symbol:, **kwargs)
66
66
  Binance::Utils::Validation.require_param('symbol', symbol)
67
67
 
@@ -78,7 +78,7 @@ module Binance
78
78
  # @param symbol [String] the symbol
79
79
  # @param kwargs [Hash]
80
80
  # @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
82
82
  def trades(symbol:, **kwargs)
83
83
  Binance::Utils::Validation.require_param('symbol', symbol)
84
84
 
@@ -98,7 +98,7 @@ module Binance
98
98
  # @param kwargs [Hash]
99
99
  # @option kwargs [Integer] :limit Default 500; max 1000.
100
100
  # @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
102
102
  def historical_trades(symbol:, **kwargs)
103
103
  Binance::Utils::Validation.require_param('symbol', symbol)
104
104
 
@@ -120,7 +120,7 @@ module Binance
120
120
  # @option kwargs [Integer] :endTime Timestamp in ms to get aggregate trades until INCLUSIVE.
121
121
  # @option kwargs [Integer] :fromId Trade id to fetch from. Default gets most recent trades.
122
122
  # @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
124
124
  def agg_trades(symbol:, **kwargs)
125
125
  Binance::Utils::Validation.require_param('symbol', symbol)
126
126
 
@@ -144,7 +144,7 @@ module Binance
144
144
  # @option kwargs [Integer] :endTime Timestamp in ms to get aggregate trades until INCLUSIVE.
145
145
  # @option kwargs [String] :timeZone Default: 0 (UTC)
146
146
  # @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
148
148
  def klines(symbol:, interval:, **kwargs)
149
149
  Binance::Utils::Validation.require_param('symbol', symbol)
150
150
  Binance::Utils::Validation.require_param('interval', interval)
@@ -171,7 +171,7 @@ module Binance
171
171
  # @option kwargs [Integer] :endTime
172
172
  # @option kwargs [String] :timeZone Default: 0 (UTC)
173
173
  # @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
175
175
  def ui_klines(symbol:, interval:, **kwargs)
176
176
  Binance::Utils::Validation.require_param('symbol', symbol)
177
177
  Binance::Utils::Validation.require_param('interval', interval)
@@ -192,7 +192,7 @@ module Binance
192
192
  # GET /api/v3/avgPrice
193
193
  #
194
194
  # @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
196
196
  def avg_price(symbol:)
197
197
  Binance::Utils::Validation.require_param('symbol', symbol)
198
198
 
@@ -209,7 +209,7 @@ module Binance
209
209
  # GET /api/v3/ticker/24hr
210
210
  #
211
211
  # @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
213
213
  def ticker_24hr(symbol: nil)
214
214
  @session.public_request(
215
215
  path: '/api/v3/ticker/24hr',
@@ -228,7 +228,7 @@ module Binance
228
228
  # @option kwargs [string] :symbols
229
229
  # @option kwargs [String] :timeZone Default: 0 (UTC)
230
230
  # @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
232
232
  def ticker_trading_day(symbol: nil, symbols: nil, **kwargs)
233
233
  raise Binance::DuplicatedParametersError.new('symbol', 'symbols') unless symbols.nil? || symbol.nil?
234
234
 
@@ -253,7 +253,7 @@ module Binance
253
253
  # GET /api/v3/ticker/price
254
254
  #
255
255
  # @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
257
257
  def ticker_price(symbol: nil)
258
258
  @session.public_request(
259
259
  path: '/api/v3/ticker/price',
@@ -268,7 +268,7 @@ module Binance
268
268
  # GET /api/v3/ticker/bookTicker
269
269
  #
270
270
  # @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
272
272
  def book_ticker(symbol: nil)
273
273
  @session.public_request(
274
274
  path: '/api/v3/ticker/bookTicker',
@@ -280,10 +280,10 @@ module Binance
280
280
  #
281
281
  # Best price/qty on the order book for a symbol or symbols.
282
282
  #
283
- # GET /api/v3/ticker/bookTicker
283
+ # GET /api/v3/ticker
284
284
  #
285
285
  # @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
287
287
  def ticker(symbol: nil, symbols: nil, windowSize: '1d')
288
288
  raise Binance::DuplicatedParametersError.new('symbol', 'symbols') unless symbols.nil? || symbol.nil?
289
289
 
@@ -8,7 +8,7 @@ module Binance
8
8
  # - cancel orders (spot and oco)
9
9
  # - account information
10
10
  # - my trades
11
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api
11
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints
12
12
  module Trade
13
13
  # TestNew Order
14
14
  #
@@ -29,7 +29,7 @@ module Binance
29
29
  # @option kwargs [Float] :icebergeQty
30
30
  # @option kwargs [String] :newOrderRespType Set the response JSON. ACK, RESULT, or FULL.
31
31
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
32
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#test-new-order-trade
32
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#test-new-order-trade
33
33
  def new_order_test(symbol:, side:, type:, **kwargs)
34
34
  Binance::Utils::Validation.require_param('symbol', symbol)
35
35
  Binance::Utils::Validation.require_param('side', side)
@@ -61,7 +61,7 @@ module Binance
61
61
  # @option kwargs [Float] :icebergeQty
62
62
  # @option kwargs [String] :newOrderRespType Set the response JSON. ACK, RESULT, or FULL.
63
63
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
64
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#new-order-trade
64
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
65
65
  def new_order(symbol:, side:, type:, **kwargs)
66
66
  Binance::Utils::Validation.require_param('symbol', symbol)
67
67
  Binance::Utils::Validation.require_param('side', side)
@@ -84,7 +84,7 @@ module Binance
84
84
  # @option kwargs [String] :origClientOrderId
85
85
  # @option kwargs [String] :newClientOrderId
86
86
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
87
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#cancel-order-trade
87
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-trade
88
88
  def cancel_order(symbol:, **kwargs)
89
89
  Binance::Utils::Validation.require_param('symbol', symbol)
90
90
 
@@ -98,7 +98,7 @@ module Binance
98
98
  # @param symbol [String] the symbol
99
99
  # @param kwargs [Hash]
100
100
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
101
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#cancel-all-open-orders-on-a-symbol-trade
101
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-all-open-orders-on-a-symbol-trade
102
102
  def cancel_open_orders(symbol:, **kwargs)
103
103
  Binance::Utils::Validation.require_param('symbol', symbol)
104
104
 
@@ -114,7 +114,7 @@ module Binance
114
114
  # @option kwargs [Integer] :orderId
115
115
  # @option kwargs [String] :origClientOrderId
116
116
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
117
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-order-user_data
117
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-user_data
118
118
  def get_order(symbol:, **kwargs)
119
119
  Binance::Utils::Validation.require_param('symbol', symbol)
120
120
 
@@ -128,7 +128,7 @@ module Binance
128
128
  # @param kwargs [Hash]
129
129
  # @option kwargs [String] :symbol the symbol
130
130
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
131
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#current-open-orders-user_data
131
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#current-open-orders-user_data
132
132
  def open_orders(**kwargs)
133
133
  @session.sign_request(:get, '/api/v3/openOrders', params: kwargs)
134
134
  end
@@ -146,7 +146,7 @@ module Binance
146
146
  # @option kwargs [String] :endTime
147
147
  # @option kwargs [String] :limit Default 500; max 1000.
148
148
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
149
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#all-orders-user_data
149
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
150
150
  def all_orders(symbol:, **kwargs)
151
151
  Binance::Utils::Validation.require_param('symbol', symbol)
152
152
 
@@ -184,7 +184,7 @@ module Binance
184
184
  # @option kwargs [String] :belowStrategyType Arbitrary numeric value identifying the below order strategy. Values smaller than 1000000 are reserved and cannot be used.
185
185
  # @option kwargs [String] :newOrderRespType
186
186
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
187
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#new-order-list---oco-trade
187
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---oco-trade
188
188
  def new_oco_order(symbol:, side:, quantity:, aboveType:, belowType:, **kwargs)
189
189
  Binance::Utils::Validation.require_param('symbol', symbol)
190
190
  Binance::Utils::Validation.require_param('side', side)
@@ -211,7 +211,7 @@ module Binance
211
211
  # @option kwargs [String] :listClientOrderId
212
212
  # @option kwargs [String] :newClientOrderId
213
213
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
214
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#cancel-order-list-trade
214
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-list-trade
215
215
  def cancel_order_list(symbol:, **kwargs)
216
216
  Binance::Utils::Validation.require_param('symbol', symbol)
217
217
 
@@ -228,7 +228,7 @@ module Binance
228
228
  # @option kwargs [Integer] :orderListId
229
229
  # @option kwargs [String] :orgClientOrderId
230
230
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
231
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-order-list-user_data
231
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-list-user_data
232
232
  def order_list(**kwargs)
233
233
  @session.sign_request(:get, '/api/v3/orderList', params: kwargs)
234
234
  end
@@ -245,7 +245,7 @@ module Binance
245
245
  # @option kwargs [String] :endTime
246
246
  # @option kwargs [String] :limit Default 500; max 1000.
247
247
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
248
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-all-order-lists-user_data
248
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-all-order-lists-user_data
249
249
  def all_order_list(**kwargs)
250
250
  @session.sign_request(:get, '/api/v3/allOrderList', params: kwargs)
251
251
  end
@@ -256,7 +256,7 @@ module Binance
256
256
  #
257
257
  # @param kwargs [Hash]
258
258
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
259
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-open-order-lists-user_data
259
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-open-order-lists-user_data
260
260
  def open_order_list(**kwargs)
261
261
  @session.sign_request(:get, '/api/v3/openOrderList', params: kwargs)
262
262
  end
@@ -267,7 +267,7 @@ module Binance
267
267
  #
268
268
  # @param kwargs [Hash]
269
269
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
270
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#account-information-user_data
270
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-information-user_data
271
271
  def account(**kwargs)
272
272
  @session.sign_request(:get, '/api/v3/account', params: kwargs)
273
273
  end
@@ -284,7 +284,7 @@ module Binance
284
284
  # @option kwargs [Integer] :fromId TradeId to fetch from. Default gets most recent trades.
285
285
  # @option kwargs [Integer] :limit Default 500; max 1000.
286
286
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
287
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#account-trade-list-user_data
287
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
288
288
  def my_trades(symbol:, **kwargs)
289
289
  @session.sign_request(:get, '/api/v3/myTrades', params: kwargs.merge(symbol: symbol))
290
290
  end
@@ -295,7 +295,7 @@ module Binance
295
295
  #
296
296
  # @param kwargs [Hash]
297
297
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
298
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-unfilled-order-count-user_data
298
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#query-unfilled-order-count-user_data
299
299
  def get_order_rate_limit(**kwargs)
300
300
  @session.sign_request(:get, '/api/v3/rateLimit/order', params: kwargs)
301
301
  end
@@ -311,7 +311,7 @@ module Binance
311
311
  # @param kwargs [Integer] :fromPreventedMatchId
312
312
  # @param kwargs [Integer] :limit Default: 500; Max: 1000
313
313
  # @param kwargs [Integer] :recvWindow The value cannot be greater than 60000
314
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-prevented-matches-user_data
314
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#query-prevented-matches-user_data
315
315
  def my_prevented_matches(symbol:, **kwargs)
316
316
  Binance::Utils::Validation.require_param('symbol', symbol)
317
317
 
@@ -329,7 +329,7 @@ module Binance
329
329
  # @param kwargs [Integer] :fromAllocationId
330
330
  # @param kwargs [Integer] :limit Default 500;Max 1000
331
331
  # @param kwargs [Integer] :orderId
332
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-allocations-user_data
332
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#query-allocations-user_data
333
333
  def my_allocations(symbol:, **kwargs)
334
334
  Binance::Utils::Validation.require_param('symbol', symbol)
335
335
 
@@ -341,7 +341,7 @@ module Binance
341
341
  # GET /api/v3/account/commission
342
342
  #
343
343
  # @param symbol [String]
344
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-commission-rates-user_data
344
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#query-commission-rates-user_data
345
345
  def commission_rate(symbol:)
346
346
  Binance::Utils::Validation.require_param('symbol', symbol)
347
347
 
@@ -376,7 +376,7 @@ module Binance
376
376
  # @option kwargs [String] :orderRateLimitExceededMode DO_NOTHING (default)- will only attempt to cancel the order if account has not exceeded the unfilled order rate limit
377
377
  # CANCEL_ONLY - will always cancel the order
378
378
  # @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
379
- # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
379
+ # @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
380
380
  def cancel_replace(symbol:, side:, type:, cancelReplaceMode:, **kwargs)
381
381
  Binance::Utils::Validation.require_param('symbol', symbol)
382
382
  Binance::Utils::Validation.require_param('side', side)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Binance
4
- VERSION = '1.7.0'
4
+ VERSION = '1.7.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binance-connector-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Binance
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-05 00:00:00.000000000 Z
11
+ date: 2025-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.3'
97
97
  description: ''
98
- email:
98
+ email:
99
99
  executables: []
100
100
  extensions: []
101
101
  extra_rdoc_files: []
@@ -135,7 +135,7 @@ licenses:
135
135
  - MIT
136
136
  metadata:
137
137
  rubygems_mfa_required: 'true'
138
- post_install_message:
138
+ post_install_message:
139
139
  rdoc_options: []
140
140
  require_paths:
141
141
  - lib
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubygems_version: 3.3.3
154
- signing_key:
154
+ signing_key:
155
155
  specification_version: 4
156
156
  summary: This is a lightweight library that works as a connector to the Binance public
157
157
  API.