Skip to content

Commit

Permalink
Add Futures market and topics
Browse files Browse the repository at this point in the history
Needed for websocket support
  • Loading branch information
rlmcpherson committed Jan 7, 2025
1 parent d24412d commit 43ba7c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions websocket/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const (
Forex Market = "forex"
Crypto Market = "crypto"
Indices Market = "indices"
Futures Market = "futures"
)

func (m Market) supports(topic Topic) bool {
Expand Down Expand Up @@ -155,6 +156,13 @@ const (
IndexValue Topic = 92

BusinessFairMarketValue Topic = 100

futuresMin Topic = 110
FutureSecAggs Topic = 111
FutureMinAggs Topic = 112
FutureTrades Topic = 113
FutureQuotes Topic = 114
futuresMax Topic = 115
)

func (t Topic) prefix() string {
Expand Down

0 comments on commit 43ba7c1

Please sign in to comment.