Documentation ¶
Index ¶
- func NewRequest() *request
- type CancelOrderTx
- func (s *CancelOrderTx) Do() (*types.CancelOrderResponse, error)
- func (s *CancelOrderTx) OrderHash(orderHash types.OrderHash) *CancelOrderTx
- func (s *CancelOrderTx) OrderID(orderID types.OrderID) *CancelOrderTx
- func (s *CancelOrderTx) OrderSide(orderSide types.OrderSide) *CancelOrderTx
- func (s *CancelOrderTx) Symbol(symbol types.Symbol) *CancelOrderTx
- type Client
- func (c *Client) NewCancelOrderTx() *CancelOrderTx
- func (c *Client) NewCryptoWithdrawTx() *CryptoWithdrawTx
- func (c *Client) NewFiatWithdrawTx() *FiatWithdrawTx
- func (c *Client) NewGetAsksTx() *GetAsksTx
- func (c *Client) NewGetBalancesTx() *GetBalancesTx
- func (c *Client) NewGetBidsTx() *GetBidsTx
- func (c *Client) NewGetBooksTx() *GetOpenBooksTx
- func (c *Client) NewGetCryptoAddressesTx() *GetCryptoAddressesTx
- func (c *Client) NewGetCryptoDepositTx() *GetCryptoDepositTx
- func (c *Client) NewGetCryptoWithdrawTx() *GetCryptoWithdrawTx
- func (c *Client) NewGetFiatAccountsTx() *GetFiatAccountsTx
- func (c *Client) NewGetFiatDepositsTx() *GetFiatDepositsTx
- func (c *Client) NewGetFiatWithdralsTx() *GetFiatWithdrawsTx
- func (c *Client) NewGetMarketDepthTx() *GetMarketDepthTx
- func (c *Client) NewGetOpenOrdersTx() *GetOpenOrdersTx
- func (c *Client) NewGetOrderHistoryTx() *GetOrderHistoryTx
- func (c *Client) NewGetOrderInfoTx() *GetOrderInfoTx
- func (c *Client) NewGetServerTimeTx() *GetServerTimeTx
- func (c *Client) NewGetStatusTx() *GetStatusTx
- func (c *Client) NewGetSymbolsTx() *GetSymbolsTx
- func (c *Client) NewGetTickerTx() *GetTickerTx
- func (c *Client) NewGetTradesTx() *GetTradesTx
- func (c *Client) NewGetTradingCreditsTx() *GetTradingCreditsTx
- func (c *Client) NewGetTradingviewHistoryTx() *GetTradingViewHistoryTx
- func (c *Client) NewGetUserLimitsTx() *GetUserLimitsTx
- func (c *Client) NewGetWalletsTx() *GetWalletsTx
- func (c *Client) NewGetWsTokenTx() *GetWsTokenTx
- func (c *Client) NewPlaceAskTx() *PlaceAskTx
- func (c *Client) NewPlaceBidTx() *PlaceBidTx
- type CryptoWithdrawTx
- func (s *CryptoWithdrawTx) Address(address string) *CryptoWithdrawTx
- func (s *CryptoWithdrawTx) Amount(amount float64) *CryptoWithdrawTx
- func (s *CryptoWithdrawTx) Currency(cur string) *CryptoWithdrawTx
- func (s *CryptoWithdrawTx) Do() (*types.CryptoWithdrawResponse, error)
- func (s *CryptoWithdrawTx) Memo(memo string) *CryptoWithdrawTx
- func (s *CryptoWithdrawTx) Network(network types.BlockChainNetwork) *CryptoWithdrawTx
- type FiatWithdrawTx
- type GetAsksTx
- type GetBalancesTx
- type GetBidsTx
- type GetCryptoAddressesTx
- type GetCryptoDepositTx
- type GetCryptoWithdrawTx
- type GetFiatAccountsTx
- type GetFiatDepositsTx
- type GetFiatWithdrawsTx
- type GetMarketDepthTx
- type GetOpenBooksTx
- type GetOpenOrdersTx
- type GetOrderHistoryTx
- func (s *GetOrderHistoryTx) Do() (*types.GetOrderHistoryResponse, error)
- func (s *GetOrderHistoryTx) End(end types.Timestamp) *GetOrderHistoryTx
- func (s *GetOrderHistoryTx) Limit(limit int) *GetOrderHistoryTx
- func (s *GetOrderHistoryTx) Page(page int) *GetOrderHistoryTx
- func (s *GetOrderHistoryTx) Start(start types.Timestamp) *GetOrderHistoryTx
- func (s *GetOrderHistoryTx) Symbol(symbol types.Symbol) *GetOrderHistoryTx
- type GetOrderInfoTx
- func (s *GetOrderInfoTx) Do() (*types.GetOrdersInfoResponse, error)
- func (s *GetOrderInfoTx) OrderHash(orderHash types.OrderHash) *GetOrderInfoTx
- func (s *GetOrderInfoTx) OrderID(orderID types.OrderID) *GetOrderInfoTx
- func (s *GetOrderInfoTx) OrderSide(orderSide types.OrderSide) *GetOrderInfoTx
- func (s *GetOrderInfoTx) Symbol(symbol types.Symbol) *GetOrderInfoTx
- type GetServerTimeTx
- type GetStatusTx
- type GetSymbolsTx
- type GetTickerTx
- type GetTradesTx
- type GetTradingCreditsTx
- type GetTradingViewHistoryTx
- func (s *GetTradingViewHistoryTx) Do() (*types.TradingViewHistoryResponse, error)
- func (s *GetTradingViewHistoryTx) FromTimestamp(from int64) *GetTradingViewHistoryTx
- func (s *GetTradingViewHistoryTx) Resolution(resolution types.TimeResolution) *GetTradingViewHistoryTx
- func (s *GetTradingViewHistoryTx) Symbol(symbol types.Symbol) *GetTradingViewHistoryTx
- func (s *GetTradingViewHistoryTx) ToCurrent() *GetTradingViewHistoryTx
- func (s *GetTradingViewHistoryTx) ToTimestamp(to int64) *GetTradingViewHistoryTx
- type GetUserLimitsTx
- type GetWalletsTx
- type GetWsTokenTx
- type PlaceAskTx
- func (s *PlaceAskTx) Amount(amount float64) *PlaceAskTx
- func (s *PlaceAskTx) ClientID(clientID string) *PlaceAskTx
- func (s *PlaceAskTx) Do() (*types.PlaceBidAskResponse, error)
- func (s *PlaceAskTx) OrderType(orderType types.OrderType) *PlaceAskTx
- func (s *PlaceAskTx) Rate(rate float64) *PlaceAskTx
- func (s *PlaceAskTx) Symbol(symbol types.Symbol) *PlaceAskTx
- type PlaceBidTx
- func (s *PlaceBidTx) Amount(amount float64) *PlaceBidTx
- func (s *PlaceBidTx) ClientID(clientID string) *PlaceBidTx
- func (s *PlaceBidTx) Do() (*types.PlaceBidAskResponse, error)
- func (s *PlaceBidTx) OrderType(orderType types.OrderType) *PlaceBidTx
- func (s *PlaceBidTx) Rate(rate float64) *PlaceBidTx
- func (s *PlaceBidTx) Symbol(symbol types.Symbol) *PlaceBidTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
func NewRequest() *request
Types ¶
type CancelOrderTx ¶
type CancelOrderTx struct {
// contains filtered or unexported fields
}
func (*CancelOrderTx) Do ¶
func (s *CancelOrderTx) Do() (*types.CancelOrderResponse, error)
func (*CancelOrderTx) OrderHash ¶
func (s *CancelOrderTx) OrderHash(orderHash types.OrderHash) *CancelOrderTx
func (*CancelOrderTx) OrderID ¶
func (s *CancelOrderTx) OrderID(orderID types.OrderID) *CancelOrderTx
func (*CancelOrderTx) OrderSide ¶
func (s *CancelOrderTx) OrderSide(orderSide types.OrderSide) *CancelOrderTx
func (*CancelOrderTx) Symbol ¶
func (s *CancelOrderTx) Symbol(symbol types.Symbol) *CancelOrderTx
type Client ¶
type Client struct { APIKey string SecretKey string BaseURL string UserAgent string HTTPClient *httpclient.HTTPClient Debug bool Logger *log.Logger TimeOffset int64 }
func (*Client) NewCancelOrderTx ¶
func (c *Client) NewCancelOrderTx() *CancelOrderTx
Function to Cancel Orders
Parameters Description:
- Symbol(types.Symbol) : Page of result
- OrderID(types.OrderID) : Order ID
- OrderSide(types.OrderSide) : Order side
- OrderHash(Optional[types.OrderHash]) : Order hash
Parameters Should be set before call Do() function:
func (*CancelOrderTx) Symbol(symbol types.Symbol) func (*CancelOrderTx) OrderID(orderID types.OrderID) func (*CancelOrderTx) OrderSide(orderSide types.OrderSide) func (*CancelOrderTx) OrderHash(orderHash types.OrderHash)
When OrderHash is set, Symbol, OrderID and OrderSide will be ignored.
Example of usage:
client := bitkub.NewClient() res, err := client.NewCancelOrderTx().OrderHash("OrderHash").Do()
func (*Client) NewCryptoWithdrawTx ¶
func (c *Client) NewCryptoWithdrawTx() *CryptoWithdrawTx
Function to Withdraw Crypto to specific address
Parameters Description:
- Address(string) : Address of receiver
- Amount(float64) : Amount of crypto to withdraw
- Currency(string) : Currency of crypto to withdraw
- Memo(Optional[string]) : Memo of crypto to withdraw
- Network(types.BlockChainNetwork) : Network of crypto to withdraw
Parameters Should be set before call Do() function:
func (*CryptoWithdrawTx) Address(address string) func (*CryptoWithdrawTx) Amount(amount float64) func (*CryptoWithdrawTx) Currency(cur string) func (*CryptoWithdrawTx) Memo(memo string) func (*CryptoWithdrawTx) Network(network types.BlockChainNetwork)
Example of usage:
client := bitkub.NewClient() res, err := client.NewCryptoWithdrawTx().Network(chains.BTC) .Address("address").Amount(0.01).Currency("BTC").Do()
func (*Client) NewFiatWithdrawTx ¶
func (c *Client) NewFiatWithdrawTx() *FiatWithdrawTx
Function to Get Fiat Withdraw Transaction
Parameters Description:
- ID(string) : Fiat Account ID
- Amount(float64) : Amount of fiat to withdraw
Parameters Should be set before call Do() function:
func (*FiatWithdrawTx) Amount(amount float64) func (*FiatWithdrawTx) ID(id string) *FiatWithdrawTx
Example of usage:
client := bitkub.NewClient() res, err := client.NewFiatWithdrawTx().Amount(1000).ID("Fiat Account ID").Do()
func (*Client) NewGetAsksTx ¶
Function to List open sell orders
Parameters Description:
- Symbol(types.Symbol) : Symbol of coin
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetAsksTx) Symbol(symbol types.Symbol) func (*GetAsksTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetAsksTx().Symbol(symbols.THB_BTC).Do()
func (*Client) NewGetBalancesTx ¶
func (c *Client) NewGetBalancesTx() *GetBalancesTx
Function to Get Balances
Excute Function:
func (*GetBalancesTx) Do() (*types.BalancesResponse, error) func (*GetBalancesTx) DoAny() (*types.BalancesResponseAny, error)
DoAny() function will return map[string]BalancesProps instead of Hardcode Currency Keys in result keys of `BalancesResponse` struct.
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetBalancesTx().Do()
func (*Client) NewGetBidsTx ¶
Function to List open buy orders
Parameters Description:
- Symbol(types.Symbol) : Symbol of coin
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetBidsTx) Symbol(symbol types.Symbol) func (*GetBidsTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetBidsTx().Symbol(symbols.THB_BTC).Do()
func (*Client) NewGetBooksTx ¶
func (c *Client) NewGetBooksTx() *GetOpenBooksTx
Function to List all open orders
Parameters Description:
- Symbol(types.Symbol) : Symbol of coin
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetBooksTx) Symbol(symbol types.Symbol) func (*GetBooksTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetBooksTx().Symbol(symbols.THB_BTC).Do()
func (*Client) NewGetCryptoAddressesTx ¶
func (c *Client) NewGetCryptoAddressesTx() *GetCryptoAddressesTx
Function to Get Crypto Wallet Address
Parameters Description:
- Page(Optional[int]) : Page of result
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetCryptoAddressesTx) Page(page int) func (*GetCryptoAddressesTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetCryptoAddressesTx().Page(1).Limit(5).Do()
func (*Client) NewGetCryptoDepositTx ¶
func (c *Client) NewGetCryptoDepositTx() *GetCryptoDepositTx
Function to Get History Crypto Deposit Transaction
Parameters Description:
- Page(Optional[int]) : Page of result
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetCryptoDepositTx) Page(page int) func (*GetCryptoDepositTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetCryptoDepositTx().Page(1).Limit(5).Do()
func (*Client) NewGetCryptoWithdrawTx ¶
func (c *Client) NewGetCryptoWithdrawTx() *GetCryptoWithdrawTx
Function to Get History Crypto Withdraw Transaction
Parameters Description:
- Page(Optional[int]) : Page of result
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetCryptoWithdrawTx) Page(page int) func (*GetCryptoWithdrawTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetCryptoWithdrawTx().Page(1).Limit(5).Do()
func (*Client) NewGetFiatAccountsTx ¶
func (c *Client) NewGetFiatAccountsTx() *GetFiatAccountsTx
Function to Get Fiat Accounts Transaction
Parameters Description:
- Page(Optional[int]) : Page of result
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetFiatAccountsTx) Page(page int) func (*GetFiatAccountsTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetFiatAccountsTx().Page(1).Limit(5).Do()
func (*Client) NewGetFiatDepositsTx ¶
func (c *Client) NewGetFiatDepositsTx() *GetFiatDepositsTx
Function to Get Fiat Deposit History Transaction
Parameters Description:
- Page(Optional[int]) : Page of result
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetFiatDepositsTx) Page(page int) func (*GetFiatDepositsTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetFiatDepositsTx().Page(1).Limit(5).Do()
func (*Client) NewGetFiatWithdralsTx ¶
func (c *Client) NewGetFiatWithdralsTx() *GetFiatWithdrawsTx
Function to Get Fiat Withdraw History Transaction
Parameters Description:
- Page(Optional[int]) : Page of result
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetFiatWithdrawsTx) Page(page int) func (*GetFiatWithdrawsTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetFiatWithdralsTx().Page(1).Limit(5).Do()
func (*Client) NewGetMarketDepthTx ¶
func (c *Client) NewGetMarketDepthTx() *GetMarketDepthTx
Function to Get Market Depth
Parameters Description:
- Symbol(types.Symbol) : Symbol of coin
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetMarketDepthTx) Symbol(symbol types.Symbol) func (*GetMarketDepthTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetMarketDepthTx().Symbol(symbols.THB_BTC).Do()
func (*Client) NewGetOpenOrdersTx ¶
func (c *Client) NewGetOpenOrdersTx() *GetOpenOrdersTx
Function to Get Open Orders
Parameters Description:
- Symbol(types.Symbol) : Symbol of order
Parameters Should be set before call Do() function:
func (*GetOpenOrdersTx) Symbol(symbol types.Symbol)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetOpenOrdersTx().Symbol(symbols.THB_BTC).Do()
func (*Client) NewGetOrderHistoryTx ¶
func (c *Client) NewGetOrderHistoryTx() *GetOrderHistoryTx
Function to Get Order History
Parameters Description:
- Symbol(types.Symbol) : Symbol of order
- Page(Optional[int]) : Page of result
- Limit(Optional[int]) : Limit of result
- Start(Optional[types.Timestamp]) : Start Time
- End(Optional[types.Timestamp]) : End time
Parameters Should be set before call Do() function:
func (*GetOrderHistoryTx) Symbol(symbol types.Symbol) func (*GetOrderHistoryTx) Page(page int) func (*GetOrderHistoryTx) Limit(limit int) func (*GetOrderHistoryTx) Start(start types.Timestamp) func (*GetOrderHistoryTx) End(end types.Timestamp)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetOrderHistoryTx().Symbol(symbols.THB_BTC).Do()
func (*Client) NewGetOrderInfoTx ¶
func (c *Client) NewGetOrderInfoTx() *GetOrderInfoTx
Function to Get Order Information
Parameters Description:
- Symbol(types.Symbol) : Page of result
- OrderID(types.OrderID) : Order ID
- OrderSide(types.OrderSide) : Order side
- OrderHash(Optional[types.OrderHash]) : Order hash
Parameters Should be set before call Do() function:
func (*GetOrderInfoTx) Symbol(symbol types.Symbol) func (*GetOrderInfoTx) OrderID(orderID types.OrderID) func (*GetOrderInfoTx) OrderSide(orderSide types.OrderSide) func (*GetOrderInfoTx) OrderHash(orderHash types.OrderHash)
When OrderHash is set, Symbol, OrderID and OrderSide will be ignored.
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetOrderInfoTx().OrderHash("OrderHash").Do()
func (*Client) NewGetServerTimeTx ¶
func (c *Client) NewGetServerTimeTx() *GetServerTimeTx
Function Get Server time
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetServerTimeTx().Do()
func (*Client) NewGetStatusTx ¶
func (c *Client) NewGetStatusTx() *GetStatusTx
Function Get API Endpoint Status
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetStatusTx().Do()
func (*Client) NewGetSymbolsTx ¶
func (c *Client) NewGetSymbolsTx() *GetSymbolsTx
Function Get avarable Symbols
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetSymbolsTx().Do()
func (*Client) NewGetTickerTx ¶
func (c *Client) NewGetTickerTx() *GetTickerTx
Function Get ticker information
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetTickerTx().Do()
func (*Client) NewGetTradesTx ¶
func (c *Client) NewGetTradesTx() *GetTradesTx
Function toList recent trades
Parameters Description:
- Symbol(types.Symbol) : Symbol of coin
- Limit(Optional[int]) : Limit of result
Parameters Should be set before call Do() function:
func (*GetTradesTx) Symbol(symbol types.Symbol) func (*GetTradesTx) Limit(limit int)
Example of usage:
client := bitkub.NewClient() res, err := client.NewGGetTradesTx().Symbol(symbols.THB_BTC).Do()
func (*Client) NewGetTradingCreditsTx ¶
func (c *Client) NewGetTradingCreditsTx() *GetTradingCreditsTx
Function to Get Trading credits Transaction
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetTradingCreditsTx().Do()
func (*Client) NewGetTradingviewHistoryTx ¶
func (c *Client) NewGetTradingviewHistoryTx() *GetTradingViewHistoryTx
func (*Client) NewGetUserLimitsTx ¶
func (c *Client) NewGetUserLimitsTx() *GetUserLimitsTx
Function to Get User limit Transaction
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetUserLimitsTx().Do()
func (*Client) NewGetWalletsTx ¶
func (c *Client) NewGetWalletsTx() *GetWalletsTx
Function to Get Wallets
Excute Function:
func (*GetWalletsTx) Do() (*types.WalletResponse, error) func (*GetWalletsTx) DoAny() (*types.WalletResponseAny, error)
DoAny() function will return map[string]float64 instead of Hardcode Currency Keys.
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetWalletsTx().Do()
func (*Client) NewGetWsTokenTx ¶
func (c *Client) NewGetWsTokenTx() *GetWsTokenTx
Function to Get Websocket Token Transaction
Example of usage:
client := bitkub.NewClient() res, err := client.NewGetWsTokenTx().Do()
func (*Client) NewPlaceAskTx ¶
func (c *Client) NewPlaceAskTx() *PlaceAskTx
Function to Create Sell Order
Parameters Description:
- Symbol(types.Symbol) : symbol of pair
- Amount(float64) : Amount of order
- Rate(float64) : Rate of order
- OrderType(types.OrderType) : Order type
Parameters Should be set before call Do() function:
func (*PlaceAskTx) Symbol(symbol types.Symbol) func (*PlaceAskTx) Amount(amount float64) func (*PlaceAskTx) Rate(rate float64) func (*PlaceAskTx) OrderType(orderType types.OrderType)
Example of usage:
client := bitkub.NewClient() res, err := client.NewPlaceAskTx().Symbol(symbols.THB_BTC) .Amount(0.001).OrderType(types.OrderTypeMarket).Do()
func (*Client) NewPlaceBidTx ¶
func (c *Client) NewPlaceBidTx() *PlaceBidTx
Function to Create Buy Order
Parameters Description:
- Symbol(types.Symbol) : symbol of pair
- Amount(float64) : Amount of order
- Rate(float64) : Rate of order
- OrderType(types.OrderType) : Order type
Parameters Should be set before call Do() function:
func (*PlaceBidTx) Symbol(symbol types.Symbol) func (*PlaceBidTx) Amount(amount float64) func (*PlaceBidTx) Rate(rate float64) func (*PlaceBidTx) OrderType(orderType types.OrderType)
Example of usage:
client := bitkub.NewClient() res, err := client.NewPlaceBidTx().Symbol(symbols.THB_BTC) .Amount(1000).OrderType(types.OrderTypeMarket).Do()
type CryptoWithdrawTx ¶
type CryptoWithdrawTx struct {
// contains filtered or unexported fields
}
func (*CryptoWithdrawTx) Address ¶
func (s *CryptoWithdrawTx) Address(address string) *CryptoWithdrawTx
func (*CryptoWithdrawTx) Amount ¶
func (s *CryptoWithdrawTx) Amount(amount float64) *CryptoWithdrawTx
func (*CryptoWithdrawTx) Currency ¶
func (s *CryptoWithdrawTx) Currency(cur string) *CryptoWithdrawTx
func (*CryptoWithdrawTx) Do ¶
func (s *CryptoWithdrawTx) Do() (*types.CryptoWithdrawResponse, error)
func (*CryptoWithdrawTx) Memo ¶
func (s *CryptoWithdrawTx) Memo(memo string) *CryptoWithdrawTx
func (*CryptoWithdrawTx) Network ¶
func (s *CryptoWithdrawTx) Network(network types.BlockChainNetwork) *CryptoWithdrawTx
type FiatWithdrawTx ¶
type FiatWithdrawTx struct {
// contains filtered or unexported fields
}
func (*FiatWithdrawTx) Amount ¶
func (s *FiatWithdrawTx) Amount(amount float64) *FiatWithdrawTx
func (*FiatWithdrawTx) Do ¶
func (s *FiatWithdrawTx) Do() (*types.FiatWithdrawResponse, error)
func (*FiatWithdrawTx) ID ¶
func (s *FiatWithdrawTx) ID(id string) *FiatWithdrawTx
type GetBalancesTx ¶
type GetBalancesTx struct {
// contains filtered or unexported fields
}
func (*GetBalancesTx) Do ¶
func (s *GetBalancesTx) Do() (*types.BalancesResponse, error)
func (*GetBalancesTx) DoAny ¶
func (s *GetBalancesTx) DoAny() (*types.BalancesResponseAny, error)
type GetCryptoAddressesTx ¶
type GetCryptoAddressesTx struct {
// contains filtered or unexported fields
}
func (*GetCryptoAddressesTx) Do ¶
func (s *GetCryptoAddressesTx) Do() (*types.CryptoAddressesResponse, error)
func (*GetCryptoAddressesTx) Limit ¶
func (s *GetCryptoAddressesTx) Limit(limit int) *GetCryptoAddressesTx
func (*GetCryptoAddressesTx) Page ¶
func (s *GetCryptoAddressesTx) Page(page int) *GetCryptoAddressesTx
type GetCryptoDepositTx ¶
type GetCryptoDepositTx struct {
// contains filtered or unexported fields
}
func (*GetCryptoDepositTx) Do ¶
func (s *GetCryptoDepositTx) Do() (*types.GetCryptoDepositResponse, error)
func (*GetCryptoDepositTx) Limit ¶
func (s *GetCryptoDepositTx) Limit(limit int) *GetCryptoDepositTx
func (*GetCryptoDepositTx) Page ¶
func (s *GetCryptoDepositTx) Page(page int) *GetCryptoDepositTx
type GetCryptoWithdrawTx ¶
type GetCryptoWithdrawTx struct {
// contains filtered or unexported fields
}
func (*GetCryptoWithdrawTx) Do ¶
func (s *GetCryptoWithdrawTx) Do() (*types.GetCryptoWithdrawResponse, error)
func (*GetCryptoWithdrawTx) Limit ¶
func (s *GetCryptoWithdrawTx) Limit(limit int) *GetCryptoWithdrawTx
func (*GetCryptoWithdrawTx) Page ¶
func (s *GetCryptoWithdrawTx) Page(page int) *GetCryptoWithdrawTx
type GetFiatAccountsTx ¶
type GetFiatAccountsTx struct {
// contains filtered or unexported fields
}
func (*GetFiatAccountsTx) Do ¶
func (s *GetFiatAccountsTx) Do() (*types.FiatAccountsResponse, error)
func (*GetFiatAccountsTx) Limit ¶
func (s *GetFiatAccountsTx) Limit(limit int) *GetFiatAccountsTx
func (*GetFiatAccountsTx) Page ¶
func (s *GetFiatAccountsTx) Page(page int) *GetFiatAccountsTx
type GetFiatDepositsTx ¶
type GetFiatDepositsTx struct {
// contains filtered or unexported fields
}
func (*GetFiatDepositsTx) Do ¶
func (s *GetFiatDepositsTx) Do() (*types.GetFiatDepositsResponse, error)
func (*GetFiatDepositsTx) Limit ¶
func (s *GetFiatDepositsTx) Limit(limit int) *GetFiatDepositsTx
func (*GetFiatDepositsTx) Page ¶
func (s *GetFiatDepositsTx) Page(page int) *GetFiatDepositsTx
type GetFiatWithdrawsTx ¶
type GetFiatWithdrawsTx struct {
// contains filtered or unexported fields
}
func (*GetFiatWithdrawsTx) Do ¶
func (s *GetFiatWithdrawsTx) Do() (*types.GetFiatWithdrawsResponse, error)
func (*GetFiatWithdrawsTx) Limit ¶
func (s *GetFiatWithdrawsTx) Limit(limit int) *GetFiatWithdrawsTx
func (*GetFiatWithdrawsTx) Page ¶
func (s *GetFiatWithdrawsTx) Page(page int) *GetFiatWithdrawsTx
type GetMarketDepthTx ¶
type GetMarketDepthTx struct {
// contains filtered or unexported fields
}
func (*GetMarketDepthTx) Do ¶
func (s *GetMarketDepthTx) Do() (*types.MarketDepthResponse, error)
func (*GetMarketDepthTx) Limit ¶
func (s *GetMarketDepthTx) Limit(limit int) *GetMarketDepthTx
func (*GetMarketDepthTx) Symbol ¶
func (s *GetMarketDepthTx) Symbol(symbol types.Symbol) *GetMarketDepthTx
type GetOpenBooksTx ¶
type GetOpenBooksTx struct {
// contains filtered or unexported fields
}
func (*GetOpenBooksTx) Do ¶
func (s *GetOpenBooksTx) Do() (*types.OpenBooksResponse, error)
func (*GetOpenBooksTx) Limit ¶
func (s *GetOpenBooksTx) Limit(limit int) *GetOpenBooksTx
func (*GetOpenBooksTx) Symbol ¶
func (s *GetOpenBooksTx) Symbol(symbol types.Symbol) *GetOpenBooksTx
type GetOpenOrdersTx ¶
type GetOpenOrdersTx struct {
// contains filtered or unexported fields
}
func (*GetOpenOrdersTx) Do ¶
func (s *GetOpenOrdersTx) Do() (*types.GetOpenOrdersResponse, error)
func (*GetOpenOrdersTx) Symbol ¶
func (s *GetOpenOrdersTx) Symbol(symbol types.Symbol) *GetOpenOrdersTx
type GetOrderHistoryTx ¶
type GetOrderHistoryTx struct {
// contains filtered or unexported fields
}
func (*GetOrderHistoryTx) Do ¶
func (s *GetOrderHistoryTx) Do() (*types.GetOrderHistoryResponse, error)
func (*GetOrderHistoryTx) End ¶
func (s *GetOrderHistoryTx) End(end types.Timestamp) *GetOrderHistoryTx
func (*GetOrderHistoryTx) Limit ¶
func (s *GetOrderHistoryTx) Limit(limit int) *GetOrderHistoryTx
func (*GetOrderHistoryTx) Page ¶
func (s *GetOrderHistoryTx) Page(page int) *GetOrderHistoryTx
func (*GetOrderHistoryTx) Start ¶
func (s *GetOrderHistoryTx) Start(start types.Timestamp) *GetOrderHistoryTx
func (*GetOrderHistoryTx) Symbol ¶
func (s *GetOrderHistoryTx) Symbol(symbol types.Symbol) *GetOrderHistoryTx
type GetOrderInfoTx ¶
type GetOrderInfoTx struct {
// contains filtered or unexported fields
}
func (*GetOrderInfoTx) Do ¶
func (s *GetOrderInfoTx) Do() (*types.GetOrdersInfoResponse, error)
func (*GetOrderInfoTx) OrderHash ¶
func (s *GetOrderInfoTx) OrderHash(orderHash types.OrderHash) *GetOrderInfoTx
func (*GetOrderInfoTx) OrderID ¶
func (s *GetOrderInfoTx) OrderID(orderID types.OrderID) *GetOrderInfoTx
func (*GetOrderInfoTx) OrderSide ¶
func (s *GetOrderInfoTx) OrderSide(orderSide types.OrderSide) *GetOrderInfoTx
func (*GetOrderInfoTx) Symbol ¶
func (s *GetOrderInfoTx) Symbol(symbol types.Symbol) *GetOrderInfoTx
type GetServerTimeTx ¶
type GetServerTimeTx struct {
// contains filtered or unexported fields
}
func (*GetServerTimeTx) Do ¶
func (s *GetServerTimeTx) Do() (*uint64, error)
type GetStatusTx ¶
type GetStatusTx struct {
// contains filtered or unexported fields
}
func (*GetStatusTx) Do ¶
func (s *GetStatusTx) Do() (*types.ServerStatusArray, error)
type GetSymbolsTx ¶
type GetSymbolsTx struct {
// contains filtered or unexported fields
}
func (*GetSymbolsTx) Do ¶
func (s *GetSymbolsTx) Do() (*types.SymbolsResponse, error)
type GetTickerTx ¶
type GetTickerTx struct {
// contains filtered or unexported fields
}
func (*GetTickerTx) Do ¶
func (s *GetTickerTx) Do() (*types.TickerResponse, error)
func (*GetTickerTx) DoAny ¶
func (s *GetTickerTx) DoAny() (*types.TickerResponseAny, error)
type GetTradesTx ¶
type GetTradesTx struct {
// contains filtered or unexported fields
}
func (*GetTradesTx) Do ¶
func (s *GetTradesTx) Do() (*types.TradesResponse, error)
func (*GetTradesTx) Limit ¶
func (s *GetTradesTx) Limit(limit int) *GetTradesTx
func (*GetTradesTx) Symbol ¶
func (s *GetTradesTx) Symbol(symbol types.Symbol) *GetTradesTx
type GetTradingCreditsTx ¶
type GetTradingCreditsTx struct {
// contains filtered or unexported fields
}
func (*GetTradingCreditsTx) Do ¶
func (s *GetTradingCreditsTx) Do() (*types.GetTradingCreditsResponse, error)
type GetTradingViewHistoryTx ¶
type GetTradingViewHistoryTx struct {
// contains filtered or unexported fields
}
func (*GetTradingViewHistoryTx) Do ¶
func (s *GetTradingViewHistoryTx) Do() (*types.TradingViewHistoryResponse, error)
func (*GetTradingViewHistoryTx) FromTimestamp ¶
func (s *GetTradingViewHistoryTx) FromTimestamp(from int64) *GetTradingViewHistoryTx
func (*GetTradingViewHistoryTx) Resolution ¶
func (s *GetTradingViewHistoryTx) Resolution(resolution types.TimeResolution) *GetTradingViewHistoryTx
func (*GetTradingViewHistoryTx) Symbol ¶
func (s *GetTradingViewHistoryTx) Symbol(symbol types.Symbol) *GetTradingViewHistoryTx
func (*GetTradingViewHistoryTx) ToCurrent ¶
func (s *GetTradingViewHistoryTx) ToCurrent() *GetTradingViewHistoryTx
func (*GetTradingViewHistoryTx) ToTimestamp ¶
func (s *GetTradingViewHistoryTx) ToTimestamp(to int64) *GetTradingViewHistoryTx
type GetUserLimitsTx ¶
type GetUserLimitsTx struct {
// contains filtered or unexported fields
}
func (*GetUserLimitsTx) Do ¶
func (s *GetUserLimitsTx) Do() (*types.GetUserLimitsResponse, error)
type GetWalletsTx ¶
type GetWalletsTx struct {
// contains filtered or unexported fields
}
func (*GetWalletsTx) Do ¶
func (s *GetWalletsTx) Do() (*types.WalletResponse, error)
func (*GetWalletsTx) DoAny ¶
func (s *GetWalletsTx) DoAny() (*types.WalletResponseAny, error)
type GetWsTokenTx ¶
type GetWsTokenTx struct {
// contains filtered or unexported fields
}
func (*GetWsTokenTx) Do ¶
func (s *GetWsTokenTx) Do() (*types.GetWsTokenResponse, error)
type PlaceAskTx ¶
type PlaceAskTx struct {
// contains filtered or unexported fields
}
func (*PlaceAskTx) Amount ¶
func (s *PlaceAskTx) Amount(amount float64) *PlaceAskTx
func (*PlaceAskTx) ClientID ¶
func (s *PlaceAskTx) ClientID(clientID string) *PlaceAskTx
func (*PlaceAskTx) Do ¶
func (s *PlaceAskTx) Do() (*types.PlaceBidAskResponse, error)
func (*PlaceAskTx) OrderType ¶
func (s *PlaceAskTx) OrderType(orderType types.OrderType) *PlaceAskTx
func (*PlaceAskTx) Rate ¶
func (s *PlaceAskTx) Rate(rate float64) *PlaceAskTx
func (*PlaceAskTx) Symbol ¶
func (s *PlaceAskTx) Symbol(symbol types.Symbol) *PlaceAskTx
type PlaceBidTx ¶
type PlaceBidTx struct {
// contains filtered or unexported fields
}
func (*PlaceBidTx) Amount ¶
func (s *PlaceBidTx) Amount(amount float64) *PlaceBidTx
func (*PlaceBidTx) ClientID ¶
func (s *PlaceBidTx) ClientID(clientID string) *PlaceBidTx
func (*PlaceBidTx) Do ¶
func (s *PlaceBidTx) Do() (*types.PlaceBidAskResponse, error)
func (*PlaceBidTx) OrderType ¶
func (s *PlaceBidTx) OrderType(orderType types.OrderType) *PlaceBidTx
func (*PlaceBidTx) Rate ¶
func (s *PlaceBidTx) Rate(rate float64) *PlaceBidTx
func (*PlaceBidTx) Symbol ¶
func (s *PlaceBidTx) Symbol(symbol types.Symbol) *PlaceBidTx
Source Files ¶
- balances_service.go
- bids_asks_service.go
- books_service.go
- client.go
- crypto_service.go
- dept_service.go
- fiat_service.go
- order_service.go
- request.go
- servertime_service.go
- status_service.go
- symbols_service.go
- ticker_service.go
- trades_service.go
- tradingview_service.go
- user_service.go
- wallet_service.go
- ws_service.go