Module: Binance::Client::REST::WithdrawAPI
- Included in:
- Binance::Client::REST
- Defined in:
- lib/binance/client/rest/withdraw_api.rb
Overview
Public: A Module containing all of the Withdraw API endpoints
Instance Method Summary collapse
-
#account_status(options) ⇒ Object
Public: Retrieve current account status.
-
#deposit_address(options) ⇒ Object
Public: Retrieve the deposit address for a specific asset.
-
#deposit_history(options = {}) ⇒ Object
Public: Retrieve the deposit history for the authenticated account.
-
#withdraw(options) ⇒ Object
Public: Withdraw the specified asset to the given address using the authenticated account.
-
#withdraw_history(options = {}) ⇒ Object
Public: Retrieve the withdraw history for the authenticated account.
Instance Method Details
#account_status(options) ⇒ Object
Public: Retrieve current account status
options - The Hash which hosts various REST query params.
:recvWindow - The Number of how long a request is valid for in
milliseconds (optional).
Returns a Hash with the request response
77 78 79 |
# File 'lib/binance/client/rest/withdraw_api.rb', line 77 def account_status() request :withdraw, :get, :accountStatus, end |
#deposit_address(options) ⇒ Object
Public: Retrieve the deposit address for a specific asset
options - The Hash which hosts various REST query params.
:asset - The String of which asset to retrieve (optional).
:recvWindow - The Number of how long a request is valid for in
milliseconds (optional).
Returns a Hash with the request response
66 67 68 |
# File 'lib/binance/client/rest/withdraw_api.rb', line 66 def deposit_address() request :withdraw, :get, :depositAddress, end |
#deposit_history(options = {}) ⇒ Object
Public: Retrieve the deposit history for the authenticated account
options - The Hash which hosts various REST query params.
:asset - The String of which asset to retrieve (optional).
:status - The Number of which status to retrieve (optional).
:startTime - The Timestamp of when to start the history in
milliseconds (optional).
:endTime - The Timestamp of when to end the history in
milliseconds (optional).
:recvWindow - The Number of how long a request is valid for in
milliseconds (optional).
Returns a Hash with the request response
37 38 39 |
# File 'lib/binance/client/rest/withdraw_api.rb', line 37 def deposit_history( = {}) request :withdraw, :get, :depositHistory, end |
#withdraw(options) ⇒ Object
Public: Withdraw the specified asset to the given address using the authenticated account
options - The Hash which hosts various REST query params.
:asset - The String of which asset to withdraw.
:address - The String of where to send the asset to.
:addressTag - The String secondary address identifier (optional).
:amount - The String decimal value of how much to withdraw.
:name - The String description of the address
:recvWindow - The Number of how long a request is valid for in
milliseconds (optional).
Returns a Hash with the request response
20 21 22 |
# File 'lib/binance/client/rest/withdraw_api.rb', line 20 def withdraw() request :withdraw, :post, :withdraw, end |
#withdraw_history(options = {}) ⇒ Object
Public: Retrieve the withdraw history for the authenticated account
options - The Hash which hosts various REST query params.
:asset - The String of which asset to retrieve (optional).
:status - The Number of which status to retrieve (optional).
:startTime - The Timestamp of when to start the history in
milliseconds (optional).
:endTime - The Timestamp of when to end the history in
milliseconds (optional).
:recvWindow - The Number of how long a request is valid for in
milliseconds (optional).
Returns a Hash with the request response
54 55 56 |
# File 'lib/binance/client/rest/withdraw_api.rb', line 54 def withdraw_history( = {}) request :withdraw, :get, :withdrawHistory, end |