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
|
||||
|
||||
type AuthMessage struct {
|
||||
Action string `json:"action"`
|
||||
APIKey string `json:"apiKey"`
|
||||
Nonce int64 `json:"nonce"`
|
||||
Signature string `json:"signature"`
|
||||
ID string `json:"id"`
|
||||
Action string `json:"action,omitempty"`
|
||||
APIKey string `json:"apiKey,omitempty"`
|
||||
Nonce int64 `json:"nonce,omitempty"`
|
||||
Signature string `json:"signature,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
Filters []string `json:"filters,omitempty"`
|
||||
}
|
||||
|
||||
type AuthEvent struct {
|
||||
|
|
|
@ -29,5 +29,3 @@ type WebsocketCommand struct {
|
|||
Subscriptions []Subscription `json:"subscriptions,omitempty"`
|
||||
}
|
||||
|
||||
var SubscribeAction = "subscribe"
|
||||
var UnsubscribeAction = "unsubscribe"
|
||||
|
|
Loading…
Reference in New Issue
Block a user