Documentation ¶
Index ¶
- type AssetKey
- type SDKImpl
- func (s SDKImpl) AddNewSymbolMap(exchangeID string)
- func (s SDKImpl) CancelAllOrders(req *types.OrderCancelAllRequest) (err error)
- func (s SDKImpl) CancelSingleOrder(req *types.OrderCancelSingleRequest) (err error)
- func (s SDKImpl) CloseConnection() (err error)
- func (s SDKImpl) LookupSymbolData(exchangeID, baseSymbolCoinApi, quoteSymbolCoinApi string) (symbolData types.SymbolData, ok bool)
- func (s SDKImpl) NewCancelAllOrdersRequest(exchangeId string) (req *types.OrderCancelAllRequest)
- func (s SDKImpl) NewCancelSingleOrderRequest(exchangeId, clientOrderId string) (req *types.OrderCancelSingleRequest)
- func (s SDKImpl) NewSingleOrderRequest(exchangeId, symbolIdCoinApi string, clientOrderId string, amountOrder float64, ...) (req *types.OrderNewSingleRequest)
- func (s SDKImpl) OpenConnection() (err error)
- func (s SDKImpl) PlaceSingleOrder(req *types.OrderNewSingleRequest) (err error)
- func (s SDKImpl) ResetConnection() (err error)
- func (s SDKImpl) SetBalanceSnapshotInvoke(function types.InvokeFunction)
- func (s SDKImpl) SetBalanceUpdateInvoke(function types.InvokeFunction)
- func (s SDKImpl) SetExecSnapshotInvoke(function types.InvokeFunction)
- func (s SDKImpl) SetExecUpdateInvoke(function types.InvokeFunction)
- func (s SDKImpl) SetPositionSnapshotInvoke(function types.InvokeFunction)
- func (s SDKImpl) SetPositionUpdateInvoke(function types.InvokeFunction)
- func (s SDKImpl) SetSnapshotInvoke(function types.SnapshotInvoke)
- func (s SDKImpl) SetSystemInvoke(function types.SystemInvoke)
- func (s SDKImpl) SetUpdateInvoke(function types.UpdateInvoke)
- func (s SDKImpl) StartMessageProcessing() (err error)
- func (s SDKImpl) StopMessageProcessing()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetKey ¶
type AssetKey struct {
Base, Quote string
}
AssetKey is a composite key for a hashmap to access symbol description https://stackoverflow.com/questions/52348514/how-to-make-composite-key-for-a-hash-map-in-golang
type SDKImpl ¶
type SDKImpl struct {
// contains filtered or unexported fields
}
func NewOemlSdkV1 ¶
func (SDKImpl) AddNewSymbolMap ¶
func (SDKImpl) CancelAllOrders ¶
func (s SDKImpl) CancelAllOrders(req *types.OrderCancelAllRequest) (err error)
func (SDKImpl) CancelSingleOrder ¶
func (s SDKImpl) CancelSingleOrder(req *types.OrderCancelSingleRequest) (err error)
func (SDKImpl) CloseConnection ¶
func (SDKImpl) LookupSymbolData ¶
func (s SDKImpl) LookupSymbolData(exchangeID, baseSymbolCoinApi, quoteSymbolCoinApi string) (symbolData types.SymbolData, ok bool)
func (SDKImpl) NewCancelAllOrdersRequest ¶
func (s SDKImpl) NewCancelAllOrdersRequest(exchangeId string) (req *types.OrderCancelAllRequest)
NewCancelAllOrdersRequest cancels all open orders at the exchange exchangeId: Identifier of the exchange from which active orders should be canceled.
func (SDKImpl) NewCancelSingleOrderRequest ¶
func (s SDKImpl) NewCancelSingleOrderRequest(exchangeId, clientOrderId string) (req *types.OrderCancelSingleRequest)
NewCancelSingleOrderRequest constructs a new cancel request. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the order. exchangeId: Identifier of the exchange from which active orders should be canceled.
func (SDKImpl) NewSingleOrderRequest ¶
func (SDKImpl) OpenConnection ¶
func (SDKImpl) PlaceSingleOrder ¶
func (s SDKImpl) PlaceSingleOrder(req *types.OrderNewSingleRequest) (err error)
func (SDKImpl) ResetConnection ¶
func (SDKImpl) SetBalanceSnapshotInvoke ¶
func (s SDKImpl) SetBalanceSnapshotInvoke(function types.InvokeFunction)
func (SDKImpl) SetBalanceUpdateInvoke ¶
func (s SDKImpl) SetBalanceUpdateInvoke(function types.InvokeFunction)
func (SDKImpl) SetExecSnapshotInvoke ¶
func (s SDKImpl) SetExecSnapshotInvoke(function types.InvokeFunction)
func (SDKImpl) SetExecUpdateInvoke ¶
func (s SDKImpl) SetExecUpdateInvoke(function types.InvokeFunction)
func (SDKImpl) SetPositionSnapshotInvoke ¶
func (s SDKImpl) SetPositionSnapshotInvoke(function types.InvokeFunction)
func (SDKImpl) SetPositionUpdateInvoke ¶
func (s SDKImpl) SetPositionUpdateInvoke(function types.InvokeFunction)
func (SDKImpl) SetSnapshotInvoke ¶
func (s SDKImpl) SetSnapshotInvoke(function types.SnapshotInvoke)
func (SDKImpl) SetSystemInvoke ¶
func (s SDKImpl) SetSystemInvoke(function types.SystemInvoke)
func (SDKImpl) SetUpdateInvoke ¶
func (s SDKImpl) SetUpdateInvoke(function types.UpdateInvoke)
func (SDKImpl) StartMessageProcessing ¶
func (SDKImpl) StopMessageProcessing ¶
func (s SDKImpl) StopMessageProcessing()
Click to show internal directories.
Click to hide internal directories.