diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index d3da0f3..68d321e 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -13,7 +13,7 @@ COPY --from=builder /root/.local /root/.local RUN pip install --no-cache-dir black ENV TELEGRAM=TOKEN -ENV IEX=TOKEN +ENV MARKETDATA=TOKEN COPY . . diff --git a/MarketData.py b/MarketData.py index e17a53d..1919bde 100644 --- a/MarketData.py +++ b/MarketData.py @@ -1,6 +1,3 @@ -"""Class with functions for running the bot with IEX Cloud. -""" - import logging import os import datetime as dt diff --git a/README.md b/README.md index f50dbd8..5921767 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ https://docs.simplestockbot.com/commands/ ## Donate -Simple Stock Bot is run entirely on donations, and costs about $420 a year to run. All donations go directly towards paying for servers, and premium market data provided by [IEX Cloud](https://iexcloud.io/). +Simple Stock Bot is run entirely on donations, and costs about $420 a year to run. All donations go directly towards paying for servers, and premium market data provided by [Market Data](https://www.marketdata.app/). The best way to donate is through [Buy Me A Coffee](https://www.buymeacoffee.com/Anson) which accepts Paypal or Credit card. @@ -29,4 +29,4 @@ If you have any questions get in [touch.](contact.md) - Contribute to the project on [GitLab](https://gitlab.com/simple-stock-bots) or just leave a star - Using my referral links to host your own Bot - [DigitalOcean](https://m.do.co/c/6b5df7ef55b6) - - [IEX Cloud](https://iexcloud.io/s/62c8503e) + - [Market Data](https://www.marketdata.app/) diff --git a/T_info.py b/T_info.py index 80a6e2a..cc49646 100644 --- a/T_info.py +++ b/T_info.py @@ -39,7 +39,7 @@ Simply calling a symbol in any message that the bot can see will also return the **Inline Features** You can type @SimpleStockBot `[search]` in any chat or direct message to search for the stock bots full list of stock and crypto symbols and return the price. Then once you select the ticker want the bot will send a message as you in that chat with the latest stock price. Prices may be delayed by up to an hour. - Market data is provided by [IEX Cloud](https://iexcloud.io) + Market data is provided by [Market Data](https://www.marketdata.app/) If you believe the bot is not behaving properly run `/status` or [get in touch](https://docs.simplestockbot.com/contact). """ @@ -47,7 +47,7 @@ Simply calling a symbol in any message that the bot can see will also return the donate_text = """ Simple Stock Bot is run entirely on donations[.](https://www.buymeacoffee.com/Anson) All donations go directly towards paying for servers, and market data is provided by -[IEX Cloud](https://iexcloud.io/). +[Market Data](https://www.marketdata.app/). The easiest way to donate is to run the `/donate [amount in USD]` command with US dollars you would like to donate. diff --git a/cg_Crypto.py b/cg_Crypto.py index 9407081..3daf1c4 100644 --- a/cg_Crypto.py +++ b/cg_Crypto.py @@ -1,6 +1,3 @@ -"""Class with functions for running the bot with IEX Cloud. -""" - import logging as log from typing import List @@ -22,13 +19,6 @@ class cg_Crypto: trending_cache: List[str] = [] def __init__(self) -> None: - """Creates a Symbol Object - - Parameters - ---------- - IEX_TOKEN : str - IEX Token - """ self.get_symbol_list() schedule.every().day.do(self.get_symbol_list) diff --git a/symbol_router.py b/symbol_router.py index df90248..4031a07 100644 --- a/symbol_router.py +++ b/symbol_router.py @@ -390,7 +390,6 @@ class Router: log.debug(f"{symbol} is not a Stock or Coin") if stocks: - # IEX batch endpoint doesnt seem to be working right now for stock in stocks: replies.append(self.stock.price_reply(stock)) if coins: