Skip to content

Commit

Permalink
expose sdx
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptohazard committed Nov 30, 2023
1 parent 6237e52 commit 165832b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (
)

const (
defaultProviders = "deribit,delta,lyra,synquote,aevo"
defaultProviders = "deribit,delta,lyra,synquote,aevo,sdx"
)

var (
cex = flag.Bool("cex", false, "Enable the centralized exchanges: Deribit, Delta Exchange, Thalex")
dex = flag.Bool("dex", false, "Enable the decentralized exchanges: Lyra, Synquote and Aevo")
dex = flag.Bool("dex", false, "Enable the decentralized exchanges: Lyra, Synquote, Aevo and SDX")
exotic = flag.Bool("exotic", false, "Enable the decentralized exchanges with binary options: Thales")
infos = flag.Bool("infos", false, "Show additional infos on instruments like URL ...")

Expand Down Expand Up @@ -50,7 +50,7 @@ func listProviderNames() []string {
*providers += ",deribit,delta,thalex"
}
if *dex { // deprecating "opyn" & "psy" & "zeta"
*providers += ",lyra,synquote,aevo"
*providers += ",lyra,synquote,aevo,sdx"
}
if *exotic {
*providers += ",thales"
Expand Down
2 changes: 1 addition & 1 deletion cmd/server/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func listProviderNames() []string {
*providers += ",deribit,delta,thalex"
}
if *dex { // deprecating "opyn" & "psy" & "zeta"
*providers += ",lyra,synquote,aevo"
*providers += ",lyra,synquote,aevo,sdx"
}
if *exotic {
*providers += ",thales"
Expand Down
2 changes: 2 additions & 0 deletions pkg/provider/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/teal-finance/rainbow/pkg/provider/deltaexchange"
"github.com/teal-finance/rainbow/pkg/provider/deribit"
"github.com/teal-finance/rainbow/pkg/provider/lyra"
"github.com/teal-finance/rainbow/pkg/provider/sdx"
"github.com/teal-finance/rainbow/pkg/provider/synquote"
"github.com/teal-finance/rainbow/pkg/provider/thales"
"github.com/teal-finance/rainbow/pkg/provider/thalex"
Expand All @@ -31,6 +32,7 @@ func AllProviders() []rainbow.Provider {
synquote.Provider{},
&thalex.Provider{},
aevo.Provider{},
&sdx.Provider{},
// zetamarkets.Provider{}, // paused platform due to current market conditions
thales.Provider{}, // Thales = exotic options -> https://teal.finance/rainbow/exotic
deltaexchange.Provider{}, // last because slow (rate limit)
Expand Down

0 comments on commit 165832b

Please sign in to comment.