binance-ruby 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4de51ede5570a5a06e9b4fa6714e7924eea9c161b6d369bfd017b7221221c5f
4
- data.tar.gz: ba35f9071516ac5a1454c381fc1b04519b44f858f06389365aef938c759922ed
3
+ metadata.gz: a6a78782142bfcc02defbf9f1c6229e4c55c1e9e338cc2ee5069ec28672fa030
4
+ data.tar.gz: 8baf9c06a57e64790ae6eaacadcb20407d0b10f666aebbf89957ca6186b45f84
5
5
  SHA512:
6
- metadata.gz: 0cc40f3549aa3e01c58b83092ff681fa5e53a66bfdf0f03debdf9c506ac8d99d8345cdccc268101a0a14b8a2dc252fc160506000206089b4f58604e939a67de3
7
- data.tar.gz: a96ce7998043da556176f95cba44029e50af747c77b1e739e1c0c51010b5dc1601e76cb0f598da5167872a7c7321ee2d1b77a65d6b264990e2d86d9a26312d7d
6
+ metadata.gz: 5222dc318151ea4f6e690a5ecc7cceffcfd76299f482f01d2eb11369d1d6007cc67ffc688239f6d03f39a0b252d1b0a0883b06d84345168c2805e4ddbb0b6d81
7
+ data.tar.gz: 77468aa45755ef2c4fbedb1af1cbd9c3c916225f854002c1f462601c39cfbf49e48a76eb1b381f070680eeb8d903475418223c3f0527608acbb074f73b9aef6d
@@ -2,7 +2,7 @@ module Binance
2
2
  module Api
3
3
  class Account
4
4
  class << self
5
- def fees!(recvWindow: 5000, api_key: nil, api_secret_key: nil)
5
+ def fees!(recvWindow: nil, api_key: nil, api_secret_key: nil)
6
6
  timestamp = Configuration.timestamp
7
7
  params = { recvWindow: recvWindow, timestamp: timestamp }
8
8
  Request.send!(api_key_type: :read_info, path: "/wapi/v3/assetDetail.html",
@@ -10,7 +10,7 @@ module Binance
10
10
  security_type: :user_data, api_key: api_key, api_secret_key: api_secret_key)
11
11
  end
12
12
 
13
- def info!(recvWindow: 5000, api_key: nil, api_secret_key: nil)
13
+ def info!(recvWindow: nil, api_key: nil, api_secret_key: nil)
14
14
  timestamp = Configuration.timestamp
15
15
  params = { recvWindow: recvWindow, timestamp: timestamp }
16
16
  Request.send!(api_key_type: :read_info, path: "/api/v3/account",
@@ -44,6 +44,19 @@ module Binance
44
44
  params: params.delete_if { |key, value| value.nil? }, method: :post,
45
45
  security_type: :user_data, api_key: api_key, api_secret_key: api_secret_key)
46
46
  end
47
+
48
+ # If both startTime and endTime are sent, time between startTime and endTime must be less than 90 days.
49
+ def withdraw_history!(coin: nil, status: nil, offset: nil, limit: nil, startTime: nil, endTime: nil,
50
+ recvWindow: nil, api_key: nil, api_secret_key: nil)
51
+ timestamp = Configuration.timestamp
52
+ params = {
53
+ coin: coin, status: status, offset: offset, limit: limit, startTime: startTime,
54
+ endTime: endTime, recvWindow: recvWindow, timestamp: timestamp,
55
+ }
56
+ Request.send!(api_key_type: :withdrawals, path: "/sapi/v1/capital/withdraw/history",
57
+ params: params.delete_if { |key, value| value.nil? }, method: :get,
58
+ security_type: :user_data, api_key: api_key, api_secret_key: api_secret_key)
59
+ end
47
60
  end
48
61
  end
49
62
  end
@@ -1,5 +1,5 @@
1
1
  module Binance
2
2
  module Api
3
- VERSION = "1.3.2"
3
+ VERSION = "1.3.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binance-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Peterson
@@ -237,5 +237,5 @@ requirements: []
237
237
  rubygems_version: 3.1.6
238
238
  signing_key:
239
239
  specification_version: 4
240
- summary: binance-ruby-1.3.2
240
+ summary: binance-ruby-1.3.3
241
241
  test_files: []