v1

package
v0.0.0-...-aa7aa0a Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 NewOemlSdkV1(url string) (sdk *SDKImpl)

func (SDKImpl) AddNewSymbolMap

func (s SDKImpl) AddNewSymbolMap(exchangeID string)

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 (s SDKImpl) CloseConnection() (err error)

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 (s SDKImpl) NewSingleOrderRequest(exchangeId, symbolIdCoinApi string, clientOrderId string, amountOrder float64, price float64, side types.OrdSide, orderType types.OrdType, timeInForce types.TimeInForce) (req *types.OrderNewSingleRequest)

func (SDKImpl) OpenConnection

func (s SDKImpl) OpenConnection() (err error)

func (SDKImpl) PlaceSingleOrder

func (s SDKImpl) PlaceSingleOrder(req *types.OrderNewSingleRequest) (err error)

func (SDKImpl) ResetConnection

func (s SDKImpl) ResetConnection() (err error)

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 (s SDKImpl) StartMessageProcessing() (err error)

func (SDKImpl) StopMessageProcessing

func (s SDKImpl) StopMessageProcessing()

Jump to

Keyboard shortcuts

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