coinbene

package
v0.0.0-...-2fde92b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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       float64   `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) GetFutureOrderHistory

func (swap *CoinbeneSwap) GetFutureOrderHistory(pair CurrencyPair, contractType string, optional ...OptionalParameter) ([]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(currencyPair ...CurrencyPair) (*FutureAccount, error)

func (*CoinbeneSwap) GetKlineRecords

func (swap *CoinbeneSwap) GetKlineRecords(contract_type string, currency CurrencyPair, period KlinePeriod, size int, opt ...OptionalParameter) ([]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) LimitFuturesOrder

func (swap *CoinbeneSwap) LimitFuturesOrder(currencyPair CurrencyPair, contractType, price, amount string, openType int, opt ...LimitOrderOptionalParameter) (*FutureOrder, error)

func (*CoinbeneSwap) MarketFuturesOrder

func (swap *CoinbeneSwap) MarketFuturesOrder(currencyPair CurrencyPair, contractType, amount string, openType int) (*FutureOrder, error)

func (*CoinbeneSwap) PlaceFutureOrder

func (swap *CoinbeneSwap) PlaceFutureOrder(currencyPair CurrencyPair, contractType, price, amount string, openType, matchPrice int, leverRate float64) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL