Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelOrderRequest ¶
type CancelOrderRequest struct {
TradeID string
}
message to cancel a trade
type PriceOptions ¶
options when creating new price watcher
type PriceUpdate ¶
price update from price watcher
type TradeInfoRequest ¶
type TradeInfoRequest struct {
TradeID string
}
message sent to get trade info
type TradeInfoResponse ¶
type TradeInfoResponse struct {
// info regarding the current position
// eg price, pnl, etc
Foo int
Bar int
Price float64 // using float in example
}
response message for trade info
type TradeOrderRequest ¶
type TradeOrderRequest struct {
TradeID string
Token0 string
Token1 string
Chain string
Wallet string
PrivateKey string
Expires time.Time
}
message sent to create a new trade order
type TriggerPriceUpdate ¶
type TriggerPriceUpdate struct{}
used with SendRepeat to trigger price update
Click to show internal directories.
Click to hide internal directories.