From 165832b30b6b90eba932ecc81579c3c62ed900e9 Mon Sep 17 00:00:00 2001 From: cryptohazard Date: Thu, 30 Nov 2023 02:10:08 +0100 Subject: [PATCH] expose sdx --- cmd/cli/flags.go | 6 +++--- cmd/server/flags.go | 2 +- pkg/provider/providers.go | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/cli/flags.go b/cmd/cli/flags.go index 42869e9b..9c5da0db 100644 --- a/cmd/cli/flags.go +++ b/cmd/cli/flags.go @@ -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 ...") @@ -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" diff --git a/cmd/server/flags.go b/cmd/server/flags.go index bffef354..28a4b627 100644 --- a/cmd/server/flags.go +++ b/cmd/server/flags.go @@ -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" diff --git a/pkg/provider/providers.go b/pkg/provider/providers.go index c29e137a..c9a53099 100644 --- a/pkg/provider/providers.go +++ b/pkg/provider/providers.go @@ -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" @@ -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)