mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-06-16 15:06:53 +00:00
Removed all mentions of IEX cloud
This commit is contained in:
parent
3ba785824c
commit
bf4b3032f1
@ -13,7 +13,7 @@ COPY --from=builder /root/.local /root/.local
|
|||||||
|
|
||||||
RUN pip install --no-cache-dir black
|
RUN pip install --no-cache-dir black
|
||||||
ENV TELEGRAM=TOKEN
|
ENV TELEGRAM=TOKEN
|
||||||
ENV IEX=TOKEN
|
ENV MARKETDATA=TOKEN
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
"""Class with functions for running the bot with IEX Cloud.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
|
@ -15,7 +15,7 @@ https://docs.simplestockbot.com/commands/
|
|||||||
|
|
||||||
## Donate
|
## 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.
|
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
|
- 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
|
- Using my referral links to host your own Bot
|
||||||
- [DigitalOcean](https://m.do.co/c/6b5df7ef55b6)
|
- [DigitalOcean](https://m.do.co/c/6b5df7ef55b6)
|
||||||
- [IEX Cloud](https://iexcloud.io/s/62c8503e)
|
- [Market Data](https://www.marketdata.app/)
|
||||||
|
@ -39,7 +39,7 @@ Simply calling a symbol in any message that the bot can see will also return the
|
|||||||
**Inline Features**
|
**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.
|
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).
|
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 = """
|
donate_text = """
|
||||||
Simple Stock Bot is run entirely on donations[.](https://www.buymeacoffee.com/Anson)
|
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
|
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.
|
The easiest way to donate is to run the `/donate [amount in USD]` command with US dollars you would like to donate.
|
||||||
|
|
||||||
|
10
cg_Crypto.py
10
cg_Crypto.py
@ -1,6 +1,3 @@
|
|||||||
"""Class with functions for running the bot with IEX Cloud.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import logging as log
|
import logging as log
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
@ -22,13 +19,6 @@ class cg_Crypto:
|
|||||||
trending_cache: List[str] = []
|
trending_cache: List[str] = []
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
"""Creates a Symbol Object
|
|
||||||
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
IEX_TOKEN : str
|
|
||||||
IEX Token
|
|
||||||
"""
|
|
||||||
self.get_symbol_list()
|
self.get_symbol_list()
|
||||||
schedule.every().day.do(self.get_symbol_list)
|
schedule.every().day.do(self.get_symbol_list)
|
||||||
|
|
||||||
|
@ -390,7 +390,6 @@ class Router:
|
|||||||
log.debug(f"{symbol} is not a Stock or Coin")
|
log.debug(f"{symbol} is not a Stock or Coin")
|
||||||
|
|
||||||
if stocks:
|
if stocks:
|
||||||
# IEX batch endpoint doesnt seem to be working right now
|
|
||||||
for stock in stocks:
|
for stock in stocks:
|
||||||
replies.append(self.stock.price_reply(stock))
|
replies.append(self.stock.price_reply(stock))
|
||||||
if coins:
|
if coins:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user