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

changed max length of symbol regexes

This commit is contained in:
Anson Biggs 2021-03-28 15:30:19 -07:00
parent 2844fd2a55
commit f1838ba012

View File

@ -15,8 +15,8 @@ from Symbol import Symbol, Stock, Coin
class Router:
STOCK_REGEX = "(?:^|[^\\$])\\$([a-zA-Z]{1,4})"
CRYPTO_REGEX = "[$]{2}([a-zA-Z]{1,9})"
STOCK_REGEX = "(?:^|[^\\$])\\$([a-zA-Z]{1,6})"
CRYPTO_REGEX = "[$]{2}([a-zA-Z]{1,20})"
def __init__(self):
self.stock = IEX_Symbol()