mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 07:26:53 +00:00
Withdraw Crypto wrapper mapping (#226)
* Initial commit * Updates signature for all withdrawal methods to use new withdrawRequest struct type * Implements crypto withdraw features & tests for Alphapoint, ANX, Binance, Bitfinex, Bitflyer, Bithumb, Bitmex, Bitstamp, Bittrex, BTCC, BTCmarkets, CoinbasePro, Coinut. Updates WithdrawRequest type with more members. Breaking change to update real order testing for increased code coverage * Updates all realOrder tests to run when no API key is present. Updates exchange functions to handle errors better * Implements crypto withdrawals for Exmo, GateIO, Gemini, HitBTC, Huobi, HuobiHadax, Kraken, LakeBTC, Liqui, Localbitcoins, OKCoin, OKEX, Poloniex, Wex, Yobit and ZB. Updates real order test formatting for all real order tests * Update alphapoint. Fixes anx typos. Adds function WithdrawFiatFundsToInternationalBank to exchange wrapper interface. Adds WithdrawFiatFundsToInternationalBank to alphapoint, bitmex, coinbasepro. Updates Kraken to use TradePassword property * Reverts alphapoint to use ErrNotYetImplemented * Fixes line spacing and removes unnecessary line
This commit is contained in:
@@ -1089,7 +1089,7 @@ type UserRequestWithdrawalParams struct {
|
||||
Address string `json:"address,omitempty"`
|
||||
|
||||
// Amount - Amount of withdrawal currency.
|
||||
Amount int64 `json:"amount,omitempty"`
|
||||
Amount float64 `json:"amount,omitempty"`
|
||||
|
||||
// Currency - Currency you're withdrawing. Options: `XBt`
|
||||
Currency string `json:"currency,omitempty"`
|
||||
@@ -1100,7 +1100,7 @@ type UserRequestWithdrawalParams struct {
|
||||
Fee float64 `json:"fee,omitempty"`
|
||||
|
||||
// OtpToken - 2FA token. Required if 2FA is enabled on your account.
|
||||
OtpToken string `json:"otpToken,omitempty"`
|
||||
OtpToken int64 `json:"otpToken,omitempty"`
|
||||
}
|
||||
|
||||
// VerifyData verifies outgoing data sets
|
||||
|
||||
Reference in New Issue
Block a user