1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-15 23:06:40 +00:00

added support for stock symbols using '.'

This commit is contained in:
Anson Biggs 2021-06-07 18:20:52 +00:00
parent 2fa26c4662
commit 08f140af8e

View File

@ -16,7 +16,7 @@ from Symbol import Symbol, Stock, Coin
class Router:
STOCK_REGEX = "(?:^|[^\\$])\\$([a-zA-Z]{1,6})"
STOCK_REGEX = "(?:^|[^\\$])\\$([a-zA-Z.]{1,6})"
CRYPTO_REGEX = "[$]{2}([a-zA-Z]{1,20})"
searched_symbols = {}