Skip to content

Commit 4d318fe

Browse files
committed
Allow after-hours LongBridge API probe
1 parent 30c8c49 commit 4d318fe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_longbridge_fractional_order_api_probe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def setUp(self) -> None:
4444
self.trade_context = TradeContext(config)
4545

4646
def _submit_limit_buy(self, quantity: Decimal):
47-
from longport.openapi import OrderSide, OrderType, TimeInForceType
47+
from longport.openapi import OrderSide, OrderType, OutsideRTH, TimeInForceType
4848

4949
return self.trade_context.submit_order(
5050
self.symbol,
@@ -53,6 +53,7 @@ def _submit_limit_buy(self, quantity: Decimal):
5353
quantity,
5454
TimeInForceType.Day,
5555
submitted_price=self.limit_price,
56+
outside_rth=OutsideRTH.AnyTime,
5657
remark="qpk-fractional-api-probe",
5758
)
5859

0 commit comments

Comments
 (0)