This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
forked from joaopsilva/binance-java-api
-
Notifications
You must be signed in to change notification settings - Fork 622
Update wallet endpoints #397
Open
rezazadeh93
wants to merge
17
commits into
binance-exchange:master
Choose a base branch
from
rezazadeh93:update-wallet-endpoints
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
48eb1f4
Merge pull request #1 from binance-exchange/master
ravesteijnd 726fe31
Added withdraw options withdrawOrderId, network, transactionFeeFlag t…
ravesteijnd c30872c
Added withdraw options withdrawOrderId, network, transactionFeeFlag
ravesteijnd 4dce039
fixed build issue in pom
rezazadeh93 338a121
add package option to pom
rezazadeh93 3d2c8a8
attached source files to artifact
06f7f46
Merge fork
ravesteijnd 8e09893
Merge branch 'master' of github.com:binance-exchange/binance-java-api
rezazadeh93 bbd4dae
update Deposit Address method to support networks
rezazadeh93 8a9085a
refactor deposit address to fixing bugs
rezazadeh93 32a62bf
update withdraw method to supports new arguments
rezazadeh93 14f98a9
update withdraw and deposit histories to support all new arguments
rezazadeh93 7935a73
Fixed Withdraw & Deposit history Responses Bug #391
rezazadeh93 ad29066
Merge conflicts
ravesteijnd da68260
Made all non-mandatory fields default 'null', added withdrawOrderId
ravesteijnd cd92728
Add javadoc and rename parameters equal to binance api doc
ravesteijnd 7ccae65
Merge pull request #2 from ravesteijnd/rezazadeh93-update-wallet-endp…
rezazadeh93 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,9 @@ | |
|
||
import com.binance.api.client.domain.account.*; | ||
import com.binance.api.client.domain.account.request.*; | ||
import com.binance.api.client.domain.general.ExchangeInfo; | ||
import com.binance.api.client.domain.general.Asset; | ||
import com.binance.api.client.domain.market.AggTrade; | ||
import com.binance.api.client.domain.market.BookTicker; | ||
import com.binance.api.client.domain.market.Candlestick; | ||
import com.binance.api.client.domain.market.CandlestickInterval; | ||
import com.binance.api.client.domain.market.OrderBook; | ||
import com.binance.api.client.domain.market.TickerPrice; | ||
import com.binance.api.client.domain.market.TickerStatistics; | ||
import com.binance.api.client.domain.general.ExchangeInfo; | ||
import com.binance.api.client.domain.market.*; | ||
|
||
import java.util.List; | ||
|
||
|
@@ -265,13 +259,17 @@ public interface BinanceApiRestClient { | |
* | ||
* Enable Withdrawals option has to be active in the API settings. | ||
* | ||
* @param asset asset symbol to withdraw | ||
* @param coin asset symbol to withdraw | ||
* @param withdrawOrderId client id for withdraw | ||
* @param network the network to use for the withdrawal | ||
* @param address address to withdraw to | ||
* @param amount amount to withdraw | ||
* @param name description/alias of the address | ||
* @param addressTag Secondary address identifier for coins like XRP,XMR etc. | ||
* @param amount amount to withdraw | ||
* @param transactionFeeFlag When making internal transfer, true for returning the fee to the destination account; false for returning the fee back to the departure account. Default false. | ||
* @param name Description of the address. Space in name should be encoded into %20. | ||
*/ | ||
WithdrawResult withdraw(String asset, String address, String amount, String name, String addressTag); | ||
WithdrawResult withdraw(String coin, String withdrawOrderId, String network, String address, String amount, | ||
String name, String addressTag, Boolean transactionFeeFlag); | ||
|
||
/** | ||
* Conver a list of assets to BNB | ||
|
@@ -282,16 +280,47 @@ public interface BinanceApiRestClient { | |
/** | ||
* Fetch account deposit history. | ||
* | ||
* @param coin the asset to get the history for | ||
* @return deposit history, containing a list of deposits | ||
*/ | ||
DepositHistory getDepositHistory(String asset); | ||
List<Deposit> getDepositHistory(String coin); | ||
|
||
/** | ||
* Fetch account deposit history. | ||
* | ||
* @param coin the asset to get the history for | ||
* @param status 0(0:pending,6: credited but cannot withdraw, 1:success) | ||
* @param startTime Default: 90 days from current timestamp | ||
* @param endTime Default: present timestamp | ||
* @param offset Default:0 | ||
* @param limit Default:1000, Max:1000 | ||
* @return deposit history, containing a list of deposits | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Param description missing |
||
*/ | ||
List<Deposit> getDepositHistory(String coin, int status, Long startTime, Long endTime, | ||
int offset, int limit); | ||
|
||
/** | ||
* Fetch account withdraw history. | ||
* | ||
* @param coin the asset to get the history for | ||
* @return withdraw history, containing a list of withdrawals | ||
*/ | ||
List<Withdraw> getWithdrawHistory(String coin); | ||
|
||
/** | ||
* Fetch account withdraw history. | ||
* | ||
* @param coin the asset to get the history for | ||
* @param withdrawOrderId client id for withdraw | ||
* @param status 0(0:Email Sent,1:Cancelled 2:Awaiting Approval 3:Rejected 4:Processing 5:Failure 6:Completed) | ||
* @param startTime Default: 90 days from current timestamp | ||
* @param endTime Default: present timestamp | ||
* @param offset Default:0 | ||
* @param limit Default:1000, Max:1000 | ||
* @return withdraw history, containing a list of withdrawals | ||
*/ | ||
WithdrawHistory getWithdrawHistory(String asset); | ||
List<Withdraw> getWithdrawHistory(String coin, String withdrawOrderId, Integer status, Long startTime, Long endTime, | ||
Integer offset, Integer limit); | ||
|
||
/** | ||
* Fetch sub-account transfer history. | ||
|
@@ -301,11 +330,12 @@ public interface BinanceApiRestClient { | |
List<SubAccountTransfer> getSubAccountTransfers(); | ||
|
||
/** | ||
* Fetch deposit address. | ||
* | ||
* @return deposit address for a given asset. | ||
* Fetch deposit address supported network. | ||
* @param asset coin property | ||
* @param network network property | ||
* @return deposit address for given network and asset | ||
*/ | ||
DepositAddress getDepositAddress(String asset); | ||
DepositAddress getDepositAddress(String asset, String network); | ||
|
||
// User stream endpoints | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all params documented