glupbit/exchange/withdraw
Withdrawal — POST /withdraws/coin, POST /withdraws/krw.
Types
Digital asset withdrawal request.
pub type CoinWithdrawRequest {
CoinWithdrawRequest(
currency: String,
net_type: String,
amount: String,
address: String,
secondary_address: option.Option(String),
transaction_type: option.Option(String),
)
}
Constructors
-
CoinWithdrawRequest( currency: String, net_type: String, amount: String, address: String, secondary_address: option.Option(String), transaction_type: option.Option(String), )
KRW withdrawal request.
pub type KrwWithdrawRequest {
KrwWithdrawRequest(
amount: String,
two_factor_type: option.Option(String),
)
}
Constructors
-
KrwWithdrawRequest( amount: String, two_factor_type: option.Option(String), )
Withdrawal response.
pub type WithdrawResponse {
WithdrawResponse(
uuid: String,
currency: String,
net_type: option.Option(String),
txid: option.Option(String),
state: String,
created_at: String,
amount: String,
fee: String,
transaction_type: String,
)
}
Constructors
-
WithdrawResponse( uuid: String, currency: String, net_type: option.Option(String), txid: option.Option(String), state: String, created_at: String, amount: String, fee: String, transaction_type: String, )
Values
pub fn withdraw_coin(
c: client.AuthClient,
req req: CoinWithdrawRequest,
) -> Result(types.ApiResponse(WithdrawResponse), types.ApiError)
Withdraw digital assets. POST /withdraws/coin
pub fn withdraw_krw(
c: client.AuthClient,
req req: KrwWithdrawRequest,
) -> Result(types.ApiResponse(WithdrawResponse), types.ApiError)
Withdraw KRW. POST /withdraws/krw
pub fn withdraw_response_decoder() -> decode.Decoder(
WithdrawResponse,
)
Decoder for WithdrawResponse.