Documentation
¶
Index ¶
- type FuturesClient
- func (c *FuturesClient) NewAmendOrder() *futures_amendOrder
- 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) NewGetOrderList() *futures_getOrderList
- 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) 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
- func (c *SpotClient) NewAmendOrder() *spot_amendOrder
- func (c *SpotClient) NewCancelOrder() *spot_cancelOrder
- func (c *SpotClient) NewGetAccountInfo() *getAccountInfo
- func (c *SpotClient) NewGetBalance() *spot_getBalance
- func (c *SpotClient) NewGetInstrumentsInfo() *spot_getInstrumentsInfo
- func (c *SpotClient) NewGetOrderList() *spot_getOrderList
- func (c *SpotClient) NewOrdersHistory() *spot_ordersHistory
- func (c *SpotClient) NewPlaceOrder() *spot_placeOrder
- func (c *SpotClient) SetBrokerID(id string)
- func (c *SpotClient) SetDebug(v bool)
- func (c *SpotClient) SetProxy(proxy string)
- func (c *SpotClient) SetTimeOffset(ms int64)
- func (c *SpotClient) SetUserAgent(ua string)
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 string) *FuturesClient
func (*FuturesClient) NewAmendOrder ¶
func (c *FuturesClient) NewAmendOrder() *futures_amendOrder
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) NewGetOrderList ¶
func (c *FuturesClient) NewGetOrderList() *futures_getOrderList
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) 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 string) *SpotClient
func (*SpotClient) NewAmendOrder ¶
func (c *SpotClient) NewAmendOrder() *spot_amendOrder
func (*SpotClient) NewCancelOrder ¶
func (c *SpotClient) NewCancelOrder() *spot_cancelOrder
func (*SpotClient) NewGetAccountInfo ¶
func (c *SpotClient) NewGetAccountInfo() *getAccountInfo
func (*SpotClient) NewGetBalance ¶
func (c *SpotClient) NewGetBalance() *spot_getBalance
func (*SpotClient) NewGetInstrumentsInfo ¶
func (c *SpotClient) NewGetInstrumentsInfo() *spot_getInstrumentsInfo
func (*SpotClient) NewGetOrderList ¶
func (c *SpotClient) NewGetOrderList() *spot_getOrderList
func (*SpotClient) NewOrdersHistory ¶
func (c *SpotClient) NewOrdersHistory() *spot_ordersHistory
func (*SpotClient) NewPlaceOrder ¶
func (c *SpotClient) NewPlaceOrder() *spot_placeOrder
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
- convert.go
- futures_amendOrder.go
- futures_cancelOrder.go
- futures_getBalance.go
- futures_getInstrumentsInfo.go
- futures_getLeverage.go
- futures_getOrderList.go
- futures_getPositions.go
- futures_ordersHistory.go
- futures_placeOrder.go
- futures_positionsHistory.go
- futures_setLeverage.go
- futures_setMarginMode.go
- hyperliquid.go
- request.go
- spot_amendOrder.go
- spot_cancelOrder.go
- spot_getBalance.go
- spot_getInstrumentsInfo.go
- spot_getOrderList.go
- spot_ordersHistory.go
- spot_placeOrder.go
Click to show internal directories.
Click to hide internal directories.