mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
max: add filters field to the auth message
This commit is contained in:
parent
0ee23e0ce4
commit
eccee460ca
|
@ -1,11 +1,12 @@
|
||||||
package max
|
package max
|
||||||
|
|
||||||
type AuthMessage struct {
|
type AuthMessage struct {
|
||||||
Action string `json:"action"`
|
Action string `json:"action,omitempty"`
|
||||||
APIKey string `json:"apiKey"`
|
APIKey string `json:"apiKey,omitempty"`
|
||||||
Nonce int64 `json:"nonce"`
|
Nonce int64 `json:"nonce,omitempty"`
|
||||||
Signature string `json:"signature"`
|
Signature string `json:"signature,omitempty"`
|
||||||
ID string `json:"id"`
|
ID string `json:"id,omitempty"`
|
||||||
|
Filters []string `json:"filters,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AuthEvent struct {
|
type AuthEvent struct {
|
||||||
|
|
|
@ -29,5 +29,3 @@ type WebsocketCommand struct {
|
||||||
Subscriptions []Subscription `json:"subscriptions,omitempty"`
|
Subscriptions []Subscription `json:"subscriptions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var SubscribeAction = "subscribe"
|
|
||||||
var UnsubscribeAction = "unsubscribe"
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user