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

Merge branch 'canary' into 'master'

added support for stock symbols using '.'

See merge request simple-stock-bots/simple-telegram-stock-bot!23
This commit is contained in:
Anson Biggs 2021-06-07 18:25:07 +00:00
commit 3435ac1528

View File

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