Fix: USDC swaps md working for okx

This commit is contained in:
Mohammad Arham committed 2025-02-14 23:02:49 +00:00
1 parent 33643e9eab
commit 72efbccdbd
1 file changed
+1 -1
@@ -53,7 +53,7 @@ static void instrument_to_sec(const OkxInstrument &oi, Security &sec) {
case bts::md::okx::OkxInstrumentType::SWAP:{
auto &fut = sec.security.emplace<FutureSecurity>();
core::TimeStamp::from_ymd(3000, 1, 1,&fut.expiration);
if(oi.instId.find("USDT")!=std::string::npos){
if(oi.instId.find("USDT")!=std::string::npos || oi.instId.find("USDC")!=std::string::npos){
sec.security_common.symbol = oi.instId.substr(0,oi.instId.find_first_of("-"));
break;
}