Skip to content

Commit

Permalink
✨ update main.py to support instrument with number like US500
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Apr 16, 2024
1 parent 7ffe0de commit 6a71565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findmyorder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def identify_order(
.set_results_name("action")
.set_parse_action(pyparsing_common.upcase_tokens)
)
instrument = Word(alphas).set_results_name("instrument")
instrument = Word(alphas + nums).set_results_name("instrument")
stop_loss = Combine(
Suppress(settings.stop_loss_identifier) + Word(nums)
).set_results_name("stop_loss")
Expand Down

0 comments on commit 6a71565

Please sign in to comment.