binance-ruby 1.2.9 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/binance/api/account.rb +13 -0
- data/lib/binance/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7aeec9cb5b5ae2a051736b1476f4f72576afb66f73034ddfc49ca19f8688a67
|
4
|
+
data.tar.gz: 1071ac47ada9058de034ca589ff513c2e9fdece3ff5bfba7200b720ac5d9a8c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59d15089228fff6d726b87f48fc691564cd8863d7c7476f9999b55bc03b5d789d419c479eb371031d670fd71014cd4a213d186674fbcb96cc7d7e174c2f59987
|
7
|
+
data.tar.gz: cefe98e599a4ca202ce0f6f99ff1904dc4e1b91562819d2af84a3ed715c664968ec2ede3841e6fe230c373cd59f3cb173f4994bfd0e192781d094e841d477267
|
data/lib/binance/api/account.rb
CHANGED
@@ -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
|
data/lib/binance/api/version.rb
CHANGED
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.2.
|
4
|
+
version: 1.2.10
|
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.2.
|
240
|
+
summary: binance-ruby-1.2.10
|
241
241
|
test_files: []
|