Skip to content

Commit 5474684

Browse files
committed
Small fix in ZITrader demo
1 parent 9e898dd commit 5474684

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

demo/zitrader.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ def main(argv: List[str]):
177177
)
178178
if verbose:
179179
print(f"Bid Size: {order_size}")
180+
if order_size == 0:
181+
print(f"Not submitting order of size: : {order_size}")
182+
continue
180183

181184
limit_buy = shift.Order(
182185
shift.Order.Type.LIMIT_BUY, stock_ticker, order_size, order_price
@@ -209,6 +212,9 @@ def main(argv: List[str]):
209212
)
210213
if verbose:
211214
print(f"Ask Size: {order_size}")
215+
if order_size == 0:
216+
print(f"Not submitting order of size: : {order_size}")
217+
continue
212218

213219
limit_sell = shift.Order(
214220
shift.Order.Type.LIMIT_SELL, stock_ticker, order_size, order_price

0 commit comments

Comments
 (0)