From ff86b10895a6796fa3431e342e40feda72e4942b Mon Sep 17 00:00:00 2001 From: Mohammad Arham Date: Tue, 11 Mar 2025 20:35:24 +0000 Subject: [PATCH] Fix: temp fix to move okx btc swap to config for min tick --- src/server/sparkd/md/okx/OkxInstrumentStore.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/sparkd/md/okx/OkxInstrumentStore.cpp b/src/server/sparkd/md/okx/OkxInstrumentStore.cpp index 977f3cfb0..834b0087f 100644 --- a/src/server/sparkd/md/okx/OkxInstrumentStore.cpp +++ b/src/server/sparkd/md/okx/OkxInstrumentStore.cpp @@ -55,6 +55,11 @@ static void instrument_to_sec(const OkxInstrument &oi, Security &sec) { core::TimeStamp::from_ymd(3000, 1, 1,&fut.expiration); 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("-")); + //tickSz 0.1, lotSz 0.01, minSz = 0.01 + if(oi.instId.find("BTC")!=std::string::npos){// so that config overrides them + scomm.min_quantity = 0; + scomm.min_quantity_increment = 0; + } break; } sec.security_common.symbol = oi.settleCcy;