Fix: orca and raydium show up in the api server
This commit is contained in:
1 parent
188daf2b84
commit
80656a0890
4 files changed
+40
-1
No files matched your search
@@ -27,12 +27,27 @@ std::set<bts::api::Venue> MarketDataConfigUtils::get_live_exchanges(
|
||||
rv.insert(bts::api::VENUE_TWSE);
|
||||
if (cfg.cboe_size()>0)
|
||||
rv.insert(bts::api::VENUE_CBOE);
|
||||
if (cfg.okx_size() > 0) {
|
||||
rv.insert(bts::api::VENUE_OKX);
|
||||
}
|
||||
if (cfg.bybit_size() > 0) {
|
||||
rv.insert(bts::api::VENUE_BYBIT);
|
||||
}
|
||||
if (cfg.gateio_size() > 0) {
|
||||
rv.insert(bts::api::VENUE_GATEIO);
|
||||
}
|
||||
for (const auto &dex_cfg : cfg.dex()) {
|
||||
switch (dex_cfg.venue()) {
|
||||
case bts::api::domain::VENUE_ORCA:
|
||||
rv.insert(bts::api::VENUE_ORCA);
|
||||
break;
|
||||
case bts::api::domain::VENUE_RAYDIUM:
|
||||
rv.insert(bts::api::VENUE_RAYDIUM);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,15 @@ SymbolLists {
|
||||
list {
|
||||
key: "OKX"
|
||||
symbol: "BTC"
|
||||
symbol: "ETH"
|
||||
symbol: "SOL"
|
||||
}
|
||||
list {
|
||||
key: "ORCA"
|
||||
symbol: "SOL"
|
||||
}
|
||||
list {
|
||||
key: "RAYDIUM"
|
||||
symbol: "SOL"
|
||||
}
|
||||
list {
|
||||
key: "BYBIT"
|
||||
@@ -199,6 +207,14 @@ Symbols {
|
||||
future: @SymbolLists.list[OKX].symbol
|
||||
option: @SymbolLists.list[OKX].symbol
|
||||
}
|
||||
venues {
|
||||
name: "VENUE_ORCA"
|
||||
spot: @SymbolLists.list[ORCA].symbol
|
||||
}
|
||||
venues {
|
||||
name: "VENUE_RAYDIUM"
|
||||
spot: @SymbolLists.list[RAYDIUM].symbol
|
||||
}
|
||||
venues {
|
||||
name: "VENUE_BYBIT"
|
||||
spot: @SymbolLists.list[BYBIT].symbol
|
||||
|
||||
@@ -88,6 +88,12 @@ void from_json(const nlohmann::json &j, CoinbaseExchangeData &data);
|
||||
void to_json(nlohmann::json &j, const Security &s);
|
||||
void from_json(const nlohmann::json &j, Security &s);
|
||||
|
||||
void to_json(nlohmann::json &j, const OrcaExchangeData &data);
|
||||
void from_json(const nlohmann::json &j, OrcaExchangeData &data);
|
||||
|
||||
void to_json(nlohmann::json &j, const RaydiumExchangeData &data);
|
||||
void from_json(const nlohmann::json &j, RaydiumExchangeData &data);
|
||||
|
||||
PB_ENUM_FROM_JSON(SyntheticContract_PriceCalc);
|
||||
PB_ENUM_TO_JSON(SyntheticContract_PriceCalc);
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ bool validate(
|
||||
VENUE_CASE(BINANCE_US, BinanceUs)
|
||||
VENUE_CASE(COINBASE, Coinbase)
|
||||
VENUE_CASE(OKX, Okx)
|
||||
VENUE_CASE(ORCA, Orca)
|
||||
VENUE_CASE(RAYDIUM, Raydium)
|
||||
VENUE_CASE(TAIFEX, Taifex)
|
||||
VENUE_CASE(TWSE, Twse)
|
||||
case api::VENUE_BTS:
|
||||
|
||||
Reference in new issue
Block a user