Fix: temp fix to move okx btc swap to config for min tick
This commit is contained in:
1 parent
ea3c0717d8
commit
ff86b10895
1 file changed
+5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user