Documentation ¶
Index ¶
- Constants
- type APIClient
- func (c *APIClient) CheckOrder(intAccount int, update Order) (*CheckOrderInfo, error)
- func (c *APIClient) CreateOrder(order string, intAccount int, update Order) (*CreateOrderInfo, error)
- func (c *APIClient) DeleteOrder(order string, intAccount int) error
- func (c *APIClient) GetAccountInfo(intAccount int) (*AccountInfo, error)
- func (c *APIClient) GetClientInfo() (*ClientInfo, error)
- func (c *APIClient) GetConfig() error
- func (c *APIClient) Login() error
- func (c *APIClient) UpdateOrder(order string, intAccount int, update Order) error
- type AccountInfo
- type AccountInfoResponse
- type CashFund
- type CheckOrderInfo
- type CheckOrderResponse
- type ClientInfo
- type ClientInfoResponse
- type Config
- type CreateOrderInfo
- type CreateOrderResponse
- type CurrencyPair
- type Order
- type OrderAction
- type OrderTime
- type OrderType
- type TransactionFee
Constants ¶
View Source
const ( OrderActionBuy OrderAction = "BUY" OrderActionSell OrderAction = "SELL" OrderTypeLimit OrderType = 0 OrderTypeStopLimit OrderType = 1 OrderTypeMarket OrderType = 2 OrderTypeStoploss OrderType = 3 OrderTimeDay OrderTime = 1 OrderTimeGTC OrderTime = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct { Username string Password string URL string // contains filtered or unexported fields }
func NewAPIClient ¶
func NewAPIClientWithURL ¶
func (*APIClient) CheckOrder ¶
func (c *APIClient) CheckOrder(intAccount int, update Order) (*CheckOrderInfo, error)
func (*APIClient) CreateOrder ¶
func (*APIClient) GetAccountInfo ¶
func (c *APIClient) GetAccountInfo(intAccount int) (*AccountInfo, error)
func (*APIClient) GetClientInfo ¶
func (c *APIClient) GetClientInfo() (*ClientInfo, error)
type AccountInfo ¶
type AccountInfo struct { ClientID int `json:"clientId"` BaseCurrency string `json:"baseCurrency"` CurrencyPairs map[string]CurrencyPair `json:"currencyPairs"` Margintype string `json:"marginType"` CashFunds map[string][]CashFund `json:"cashFunds"` CompensationCapping float64 `json:"compensationCapping"` }
type AccountInfoResponse ¶
type AccountInfoResponse struct {
Data AccountInfo `json:"data"`
}
type CheckOrderInfo ¶
type CheckOrderInfo struct { ConfirmationID string `json:"confirmationId"` TransactionFees []TransactionFee `json:"transactionFees"` }
type CheckOrderResponse ¶
type CheckOrderResponse struct {
Data CheckOrderInfo `json:"data"`
}
type ClientInfo ¶
type ClientInfo struct {
IntAccount int `json:"intAccount"`
}
type ClientInfoResponse ¶
type ClientInfoResponse struct {
Data ClientInfo `json:"data"`
}
type CreateOrderInfo ¶
type CreateOrderInfo struct {
OrderID string `json:"orderId"`
}
type CreateOrderResponse ¶
type CreateOrderResponse struct {
Data CreateOrderInfo `json:"data"`
}
type CurrencyPair ¶
type OrderAction ¶
type OrderAction string
type TransactionFee ¶
Click to show internal directories.
Click to hide internal directories.