-
Notifications
You must be signed in to change notification settings - Fork 96
/
api_wallet.go
43 lines (34 loc) · 1.52 KB
/
api_wallet.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package deribit
import "github.com/frankrap/deribit-api/models"
func (c *Client) CancelTransferByID(params *models.CancelTransferByIDParams) (result models.Transfer, err error) {
err = c.Call("private/cancel_transfer_by_id", params, &result)
return
}
func (c *Client) CancelWithdrawal(params *models.CancelWithdrawalParams) (result models.Withdrawal, err error) {
err = c.Call("private/cancel_withdrawal", params, &result)
return
}
func (c *Client) CreateDepositAddress(params *models.CreateDepositAddressParams) (result models.DepositAddress, err error) {
err = c.Call("private/create_deposit_address", params, &result)
return
}
func (c *Client) GetCurrentDepositAddress(params *models.GetCurrentDepositAddressParams) (result models.DepositAddress, err error) {
err = c.Call("private/get_current_deposit_address", params, &result)
return
}
func (c *Client) GetDeposits(params *models.GetDepositsParams) (result models.GetDepositsResponse, err error) {
err = c.Call("private/get_deposits", params, &result)
return
}
func (c *Client) GetTransfers(params *models.GetTransfersParams) (result models.GetTransfersResponse, err error) {
err = c.Call("private/get_transfers", params, &result)
return
}
func (c *Client) GetWithdrawals(params *models.GetWithdrawalsParams) (result []models.Withdrawal, err error) {
err = c.Call("private/get_withdrawals", params, &result)
return
}
func (c *Client) Withdraw(params *models.WithdrawParams) (result models.Withdrawal, err error) {
err = c.Call("private/withdraw", params, &result)
return
}