Documentation ¶
Index ¶
- type Coinbene
- type CoinbeneOrder
- type CoinbeneSwap
- func (swap *CoinbeneSwap) FutureCancelOrder(currencyPair CurrencyPair, contractType, orderId string) (bool, error)
- func (swap *CoinbeneSwap) GetContractValue(currencyPair CurrencyPair) (float64, error)
- func (swap *CoinbeneSwap) GetDeliveryTime() (int, int, int, int)
- func (swap *CoinbeneSwap) GetExchangeName() string
- func (swap *CoinbeneSwap) GetFee() (float64, error)
- func (swap *CoinbeneSwap) GetFutureDepth(currencyPair CurrencyPair, contractType string, size int) (*Depth, error)
- func (swap *CoinbeneSwap) GetFutureEstimatedPrice(currencyPair CurrencyPair) (float64, error)
- func (swap *CoinbeneSwap) GetFutureIndex(currencyPair CurrencyPair) (float64, error)
- func (swap *CoinbeneSwap) GetFutureOrder(orderId string, currencyPair CurrencyPair, contractType string) (*FutureOrder, error)
- func (swap *CoinbeneSwap) GetFutureOrders(orderIds []string, currencyPair CurrencyPair, contractType string) ([]FutureOrder, error)
- func (swap *CoinbeneSwap) GetFuturePosition(currencyPair CurrencyPair, contractType string) ([]FuturePosition, error)
- func (swap *CoinbeneSwap) GetFutureTicker(currencyPair CurrencyPair, contractType string) (*Ticker, error)
- func (swap *CoinbeneSwap) GetFutureUserinfo() (*FutureAccount, error)
- func (swap *CoinbeneSwap) GetKlineRecords(contract_type string, currency CurrencyPair, period, size, since int) ([]FutureKline, error)
- func (swap *CoinbeneSwap) GetTrades(contract_type string, currencyPair CurrencyPair, since int64) ([]Trade, error)
- func (swap *CoinbeneSwap) GetUnfinishFutureOrders(currencyPair CurrencyPair, contractType string) ([]FutureOrder, error)
- func (swap *CoinbeneSwap) PlaceFutureOrder(currencyPair CurrencyPair, contractType, price, amount string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coinbene ¶
type Coinbene struct {
Swap *CoinbeneSwap
}
type CoinbeneOrder ¶
type CoinbeneOrder struct { OrderId string `json:"orderId"` Direction string `json:"direction"` Leverage int `json:"leverage,string"` Symbol string `json:"symbol"` OrderType string `json:"orderType"` Quantity float64 `json:"quantity,string"` OrderPrice float64 `json:"orderPrice,string"` OrderValue float64 `json:"orderValue,string"` Fee float64 `json:"fee,string"` FilledQuantity float64 `json:"filledQuantity,string"` AveragePrice float64 `json:"averagePrice"` OrderTime time.Time `json:"orderTime"` Status string `json:"status"` }
type CoinbeneSwap ¶
type CoinbeneSwap struct {
// contains filtered or unexported fields
}
func NewCoinbeneSwap ¶
func NewCoinbeneSwap(config APIConfig) *CoinbeneSwap
func (*CoinbeneSwap) FutureCancelOrder ¶
func (swap *CoinbeneSwap) FutureCancelOrder(currencyPair CurrencyPair, contractType, orderId string) (bool, error)
func (*CoinbeneSwap) GetContractValue ¶
func (swap *CoinbeneSwap) GetContractValue(currencyPair CurrencyPair) (float64, error)
func (*CoinbeneSwap) GetDeliveryTime ¶
func (swap *CoinbeneSwap) GetDeliveryTime() (int, int, int, int)
func (*CoinbeneSwap) GetExchangeName ¶
func (swap *CoinbeneSwap) GetExchangeName() string
func (*CoinbeneSwap) GetFee ¶
func (swap *CoinbeneSwap) GetFee() (float64, error)
func (*CoinbeneSwap) GetFutureDepth ¶
func (swap *CoinbeneSwap) GetFutureDepth(currencyPair CurrencyPair, contractType string, size int) (*Depth, error)
func (*CoinbeneSwap) GetFutureEstimatedPrice ¶
func (swap *CoinbeneSwap) GetFutureEstimatedPrice(currencyPair CurrencyPair) (float64, error)
func (*CoinbeneSwap) GetFutureIndex ¶
func (swap *CoinbeneSwap) GetFutureIndex(currencyPair CurrencyPair) (float64, error)
func (*CoinbeneSwap) GetFutureOrder ¶
func (swap *CoinbeneSwap) GetFutureOrder(orderId string, currencyPair CurrencyPair, contractType string) (*FutureOrder, error)
func (*CoinbeneSwap) GetFutureOrders ¶
func (swap *CoinbeneSwap) GetFutureOrders(orderIds []string, currencyPair CurrencyPair, contractType string) ([]FutureOrder, error)
func (*CoinbeneSwap) GetFuturePosition ¶
func (swap *CoinbeneSwap) GetFuturePosition(currencyPair CurrencyPair, contractType string) ([]FuturePosition, error)
func (*CoinbeneSwap) GetFutureTicker ¶
func (swap *CoinbeneSwap) GetFutureTicker(currencyPair CurrencyPair, contractType string) (*Ticker, error)
func (*CoinbeneSwap) GetFutureUserinfo ¶
func (swap *CoinbeneSwap) GetFutureUserinfo() (*FutureAccount, error)
func (*CoinbeneSwap) GetKlineRecords ¶
func (swap *CoinbeneSwap) GetKlineRecords(contract_type string, currency CurrencyPair, period, size, since int) ([]FutureKline, error)
func (*CoinbeneSwap) GetTrades ¶
func (swap *CoinbeneSwap) GetTrades(contract_type string, currencyPair CurrencyPair, since int64) ([]Trade, error)
func (*CoinbeneSwap) GetUnfinishFutureOrders ¶
func (swap *CoinbeneSwap) GetUnfinishFutureOrders(currencyPair CurrencyPair, contractType string) ([]FutureOrder, error)
func (*CoinbeneSwap) PlaceFutureOrder ¶
func (swap *CoinbeneSwap) PlaceFutureOrder(currencyPair CurrencyPair, contractType, price, amount string, openType, matchPrice, leverRate int) (string, error)
Click to show internal directories.
Click to hide internal directories.