Skip to content

Commit

Permalink
Gemini: Fix pair handling and upgrade websocket connection for public…
Browse files Browse the repository at this point in the history
… market data (thrasher-corp#644)

* Fix Gemini pairs

* Overhaul websocket for marketdata v2

* Code cleanup + returns

* Address shazbert's and glorious's nits

* Go mod tidy
  • Loading branch information
thrasher- authored Mar 9, 2021
1 parent 2292abc commit b30d79b
Show file tree
Hide file tree
Showing 8 changed files with 654 additions and 315 deletions.
8 changes: 8 additions & 0 deletions currency/code_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ var (
PHX = NewCode("PHX")
GO = NewCode("GO")
PAX = NewCode("PAX")
PAXG = NewCode("PAXG")
EDO = NewCode("EDO")
WINGS = NewCode("WINGS")
NAV = NewCode("NAV")
Expand Down Expand Up @@ -1652,4 +1653,11 @@ var (
ZWD = NewCode("ZWD")
XETH = NewCode("XETH")
FX_BTC = NewCode("FX_BTC") // nolint // Cryptocurrency code
AAVE = NewCode("AAVE")
YFI = NewCode("YFI")
BAL = NewCode("BAL")
UMA = NewCode("UMA")
SNX = NewCode("SNX")
CRV = NewCode("CRV")
OXT = NewCode("OXT")
)
4 changes: 0 additions & 4 deletions exchanges/gemini/gemini.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/thrasher-corp/gocryptotrader/common/crypto"
exchange "github.com/thrasher-corp/gocryptotrader/exchanges"
"github.com/thrasher-corp/gocryptotrader/exchanges/request"
"github.com/thrasher-corp/gocryptotrader/exchanges/stream"
"github.com/thrasher-corp/gocryptotrader/log"
)

Expand Down Expand Up @@ -59,9 +58,6 @@ const (
// API keys and change the IsSandbox variable to true.
type Gemini struct {
exchange.Base
Role string
RequiresHeartBeat bool
connections []stream.Connection
}

// GetSymbols returns all available symbols for trading
Expand Down
Loading

0 comments on commit b30d79b

Please sign in to comment.