github.com/bitfinexcom/bitfinex-api-go@v0.0.0-20210608095005-9e0b26f200fb/pkg/models/event/event.go (about) 1 package event 2 3 type Subscribe struct { 4 Event string `json:"event,omitempty"` 5 Channel string `json:"channel,omitempty"` 6 Symbol string `json:"symbol,omitempty"` 7 Precision string `json:"prec,omitempty"` 8 Frequency string `json:"freq,omitempty"` 9 Len string `json:"len,omitempty"` 10 Key string `json:"key,omitempty"` 11 DMS int `json:"dms,omitempty"` 12 // auth related part 13 APIKEY string `json:"apiKey,omitempty"` 14 AuthSig string `json:"authSig,omitempty"` 15 AuthPayload string `json:"authPayload,omitempty"` 16 AuthNonce string `json:"authNonce,omitempty"` 17 } 18 19 type Info struct { 20 Subscribe 21 ChanID int64 `json:"chanId,omitempty"` 22 Pair string `json:"pair,omitempty"` 23 Code int64 `json:"code,omitempty"` 24 Version int64 `json:"version,omitempty"` 25 ServerID string `json:"serverId,omitempty"` 26 Status string `json:"status,omitempty"` 27 UserID int64 `json:"userId,omitempty"` 28 SubID string `json:"subId,omitempty"` 29 AuthID string `json:"auth_id,omitempty"` 30 Message string `json:"msg,omitempty"` 31 Caps Capabilities `json:"caps,omitempty"` 32 Platform Platform `json:"platform,omitempty"` 33 } 34 35 type Platform struct { 36 Status int `json:"status,omitempty"` 37 } 38 39 type Capability struct { 40 Read int `json:"read,omitempty"` 41 Write int `json:"write,omitempty"` 42 } 43 44 type Capabilities struct { 45 Orders Capability `json:"orders,omitempty"` 46 Account Capability `json:"account,omitempty"` 47 Funding Capability `json:"funding,omitempty"` 48 History Capability `json:"history,omitempty"` 49 Wallets Capability `json:"wallets,omitempty"` 50 Withdraw Capability `json:"withdraw,omitempty"` 51 Positions Capability `json:"positions,omitempty"` 52 }