fix: Set okx perp exp to year 2100

Because the year 3000 is too big for signed int64
nanosecond timestamp
This commit is contained in:
John Colvin committed 2025-04-29 19:35:15 +00:00
1 parent 69a0bcc9cd
commit b4f5e66466
1 file changed
+1 -1
@@ -55,7 +55,7 @@ static void instrument_to_sec(const OkxInstrument &oi, Security &sec) {
break;
case bts::md::okx::OkxInstrumentType::SWAP:{
auto &fut = sec.security.emplace<FutureSecurity>();
core::TimeStamp::from_ymd(3000, 1, 1,&fut.expiration);
core::TimeStamp::from_ymd(2100, 1, 1,&fut.expiration);
sec.security_common.symbol = oi.settleCcy;
scomm.cash_per_point = oi.ctVal;
if (oi.instId.find("USDT") != std::string::npos ||