Documentation
¶
Index ¶
- type FuturesClient
- func (c *FuturesClient) NewCancelOrder() *futures_cancelOrder
- func (c *FuturesClient) NewGetAccountInfo() *getAccountInfo
- func (c *FuturesClient) NewGetBalance() *futures_getBalance
- func (c *FuturesClient) NewGetInstrumentsInfo() *futures_getInstrumentsInfo
- func (c *FuturesClient) NewGetLeverage() *futures_getLeverage
- func (c *FuturesClient) NewGetMarginMode() *futures_getMarginMode
- func (c *FuturesClient) NewGetOrderList() *futures_getOrderList
- func (c *FuturesClient) NewGetPositionMode() *futures_getPositionMode
- func (c *FuturesClient) NewGetPositions() *futures_getPositions
- func (c *FuturesClient) NewOrdersHistory() *futures_ordersHistory
- func (c *FuturesClient) NewPlaceOrder() *futures_placeOrder
- func (c *FuturesClient) NewPositionsHistory() *futures_positionsHistory
- func (c *FuturesClient) NewSetLeverage() *futures_setLeverage
- func (c *FuturesClient) NewSetMarginMode() *futures_setMarginMode
- func (c *FuturesClient) NewSetPositionMode() *futures_setPositionMode
- func (c *FuturesClient) NewSignAuthStream() *signAuthStream
- func (c *FuturesClient) SetBrokerID(id string)
- func (c *FuturesClient) SetDebug(v bool)
- func (c *FuturesClient) SetProxy(proxy string)
- func (c *FuturesClient) SetTimeOffset(ms int64)
- func (c *FuturesClient) SetUserAgent(ua string)
- type SpotClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuturesClient ¶
type FuturesClient struct {
BaseURL string
UserAgent string
Proxy string
BrokerID string
Debug bool
TimeOffset int64
// contains filtered or unexported fields
}
func NewFuturesClient ¶
func NewFuturesClient(apiKey, secretKey, memo string) *FuturesClient
func (*FuturesClient) NewCancelOrder ¶
func (c *FuturesClient) NewCancelOrder() *futures_cancelOrder
func (*FuturesClient) NewGetAccountInfo ¶
func (c *FuturesClient) NewGetAccountInfo() *getAccountInfo
func (*FuturesClient) NewGetBalance ¶
func (c *FuturesClient) NewGetBalance() *futures_getBalance
func (*FuturesClient) NewGetInstrumentsInfo ¶
func (c *FuturesClient) NewGetInstrumentsInfo() *futures_getInstrumentsInfo
func (*FuturesClient) NewGetLeverage ¶
func (c *FuturesClient) NewGetLeverage() *futures_getLeverage
func (*FuturesClient) NewGetMarginMode ¶
func (c *FuturesClient) NewGetMarginMode() *futures_getMarginMode
func (*FuturesClient) NewGetOrderList ¶
func (c *FuturesClient) NewGetOrderList() *futures_getOrderList
func (*FuturesClient) NewGetPositionMode ¶
func (c *FuturesClient) NewGetPositionMode() *futures_getPositionMode
func (*FuturesClient) NewGetPositions ¶
func (c *FuturesClient) NewGetPositions() *futures_getPositions
func (*FuturesClient) NewOrdersHistory ¶
func (c *FuturesClient) NewOrdersHistory() *futures_ordersHistory
func (*FuturesClient) NewPlaceOrder ¶
func (c *FuturesClient) NewPlaceOrder() *futures_placeOrder
func (*FuturesClient) NewPositionsHistory ¶
func (c *FuturesClient) NewPositionsHistory() *futures_positionsHistory
func (*FuturesClient) NewSetLeverage ¶
func (c *FuturesClient) NewSetLeverage() *futures_setLeverage
func (*FuturesClient) NewSetMarginMode ¶
func (c *FuturesClient) NewSetMarginMode() *futures_setMarginMode
func (*FuturesClient) NewSetPositionMode ¶
func (c *FuturesClient) NewSetPositionMode() *futures_setPositionMode
func (*FuturesClient) NewSignAuthStream ¶
func (c *FuturesClient) NewSignAuthStream() *signAuthStream
func (*FuturesClient) SetBrokerID ¶
func (c *FuturesClient) SetBrokerID(id string)
func (*FuturesClient) SetDebug ¶
func (c *FuturesClient) SetDebug(v bool)
func (*FuturesClient) SetProxy ¶
func (c *FuturesClient) SetProxy(proxy string)
func (*FuturesClient) SetTimeOffset ¶
func (c *FuturesClient) SetTimeOffset(ms int64)
func (*FuturesClient) SetUserAgent ¶
func (c *FuturesClient) SetUserAgent(ua string)
type SpotClient ¶
type SpotClient struct {
BaseURL string
UserAgent string
Proxy string
BrokerID string
Debug bool
TimeOffset int64
// contains filtered or unexported fields
}
func NewSpotClient ¶
func NewSpotClient(apiKey, secretKey, memo string) *SpotClient
func (*SpotClient) SetBrokerID ¶
func (c *SpotClient) SetBrokerID(id string)
func (*SpotClient) SetDebug ¶
func (c *SpotClient) SetDebug(v bool)
func (*SpotClient) SetProxy ¶
func (c *SpotClient) SetProxy(proxy string)
func (*SpotClient) SetTimeOffset ¶
func (c *SpotClient) SetTimeOffset(ms int64)
func (*SpotClient) SetUserAgent ¶
func (c *SpotClient) SetUserAgent(ua string)
Source Files
¶
- account.go
- blofin.go
- convert.go
- futures_amendOrder.go
- futures_cancelOrder.go
- futures_getBalance.go
- futures_getInstrumentsInfo.go
- futures_getLeverage.go
- futures_getMarginMode.go
- futures_getOrderList.go
- futures_getPositionMode.go
- futures_getPositions.go
- futures_ordersHistory.go
- futures_placeOrder.go
- futures_positionsHistory.go
- futures_setLeverage.go
- futures_setMarginMode.go
- futures_setPositionMode.go
- request.go
Click to show internal directories.
Click to hide internal directories.