mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-15 14:56:40 +00:00
Update links from individual bot repos to monorepo
This commit is contained in:
parent
4f7a674f50
commit
2fd5906f9e
@ -5,7 +5,8 @@
|
||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||
// "image": "mcr.microsoft.com/devcontainers/python:1-3-bookworm",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
"dockerfile": "Dockerfile",
|
||||
"context": ".."
|
||||
},
|
||||
"features": {
|
||||
"ghcr.io/devcontainers-contrib/features/black:2": {},
|
||||
@ -21,11 +22,12 @@
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-python.isort",
|
||||
"charliermarsh.ruff",
|
||||
"ms-toolsai.jupyter"
|
||||
"ms-toolsai.jupyter",
|
||||
"esbenp.prettier-vscode"
|
||||
]
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "pip3 install --user -r dev-reqs.txt"
|
||||
"postCreateCommand": "pip3 install --user -r dev-reqs.txt && apt-get update && apt-get install -y nodejs npm && npm install"
|
||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||
// "features": {},
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
__pycache__
|
||||
.env
|
||||
node_modules
|
@ -13,12 +13,17 @@ black:
|
||||
|
||||
ruff:
|
||||
stage: lint
|
||||
# image: registry.gitlab.com/pipeline-components/ruff:latest
|
||||
image: python:3.11-slim
|
||||
script:
|
||||
- pip3 install ruff
|
||||
- ruff --output-format gitlab .
|
||||
|
||||
prettier:
|
||||
stage: lint
|
||||
image: node:16-slim # Use Node.js image since prettier is a Node.js tool
|
||||
script:
|
||||
- npm install prettier
|
||||
- npx prettier --check . # Adjust the path as needed
|
||||
|
||||
include:
|
||||
- local: /site/.gitlab-ci.yml
|
||||
|
@ -9,6 +9,7 @@ Enhance your group chats on Telegram and Discord with real-time stock and crypto
|
||||
## Documentation
|
||||
|
||||
Comprehensive documentation is available to help you understand the features and capabilities of Simple Stock Bots:
|
||||
|
||||
- [Official Documentation](https://simplestockbot.com/)
|
||||
- [Command Reference](https://simplestockbot.com/commands/)
|
||||
|
||||
@ -17,6 +18,7 @@ Comprehensive documentation is available to help you understand the features and
|
||||
Simple Stock Bots is sustained entirely through donations, with an annual expense of about $420 for server and premium market data subscriptions from [marketdata.app](https://dashboard.marketdata.app/marketdata/aff/go/misterbiggs?keyword=repo).
|
||||
|
||||
You can contribute by:
|
||||
|
||||
- Donating through [Buy Me A Coffee](https://www.buymeacoffee.com/Anson) (PayPal or Credit Card accepted).
|
||||
- Using the `/donate` [command](commands.md#donate-amount-in-usd) on Telegram.
|
||||
- [Getting in touch](contact.md) for any inquiries or suggestions.
|
||||
@ -24,7 +26,7 @@ You can contribute by:
|
||||
### Additional Support:
|
||||
|
||||
- Follow on [Twitter](https://twitter.com/AnsonBiggs)
|
||||
- Contribute or star the project on [GitLab](https://gitlab.com/simple-stock-bots)
|
||||
- Contribute or star the project on [GitLab](https://gitlab.com/simple-stock-bots/simple-stock-bot)
|
||||
- Utilize referral links for self-hosting:
|
||||
- [DigitalOcean](https://m.do.co/c/6b5df7ef55b6)
|
||||
- [marketdata.app](https://dashboard.marketdata.app/marketdata/aff/go/misterbiggs?keyword=web)
|
||||
@ -32,11 +34,13 @@ You can contribute by:
|
||||
## Hosting
|
||||
|
||||
Self-hosting instructions are provided for those interested in running the bot on their own servers:
|
||||
|
||||
- [Hosting Guide](https://simplestockbot.com/hosting/)
|
||||
|
||||
## Contact
|
||||
|
||||
Reach out for bug reports, feature requests, or other inquiries:
|
||||
|
||||
- [Contact Page](https://simplestockbot.com/contact/)
|
||||
|
||||
---
|
||||
|
@ -10,7 +10,7 @@ class D_info:
|
||||
license = re.sub(
|
||||
r"\b\n",
|
||||
" ",
|
||||
r.get("https://gitlab.com/simple-stock-bots/simple-discord-stock-bot/-/raw/master/LICENSE").text,
|
||||
r.get("https://gitlab.com/simple-stock-bots/simple-stock-bot/-/raw/master/LICENSE").text,
|
||||
)
|
||||
|
||||
help_text = """
|
||||
|
@ -1,10 +1,9 @@
|
||||
version: '3'
|
||||
version: "3"
|
||||
services:
|
||||
telegram:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: telegram/Dockerfile
|
||||
image: registry.gitlab.com/simple-stock-bots/simple-telegram-stock-bot
|
||||
env_file: .env
|
||||
discord:
|
||||
build:
|
||||
|
27
package-lock.json
generated
Normal file
27
package-lock.json
generated
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "simple-stock-bot",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"devDependencies": {
|
||||
"prettier": "3.0.3"
|
||||
}
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz",
|
||||
"integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin/prettier.cjs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
5
package.json
Normal file
5
package.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"prettier": "3.0.3"
|
||||
}
|
||||
}
|
@ -20,4 +20,4 @@ deploy_site:
|
||||
paths:
|
||||
- public
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
||||
|
@ -1,2 +1 @@
|
||||
# Blog
|
||||
|
||||
|
@ -26,6 +26,7 @@ Simple Stock Bot is a chatbot designed to enrich your financial discussions on T
|
||||
</div>
|
||||
|
||||
With Simple Stock Bot, you can:
|
||||
|
||||
- **Fetch Real-time Quotes**: Obtain the latest stock and cryptocurrency prices instantly within your group chat.
|
||||
- **View Charts**: Delve into intraday movements or assess a month's trading data right inside your group chat.
|
||||
- **Stay Updated on Market Trends**: Discover what's buzzing in the stock and crypto spheres.
|
||||
@ -36,13 +37,12 @@ With Simple Stock Bot, you can:
|
||||
|
||||
[:fontawesome-brands-discord: Discord](https://discordapp.com/api/oauth2/authorize?client_id=532045200823025666&permissions=36507338752&scope=bot){ .md-button }
|
||||
|
||||
|
||||
|
||||
## Using the Bot
|
||||
|
||||
Embarking on your journey with Simple Stock Bot is effortless. Just add the bot to your Telegram or Discord group, and you're all set to dive into financial discussions right from your chat!
|
||||
|
||||
Here are some simple commands to get you started:
|
||||
|
||||
- `/intra` to view intraday charts.
|
||||
- `/chart` for a glimpse of the last month's trading data.
|
||||
- `/trending` to catch up on the latest trending stocks and cryptocurrencies.
|
||||
@ -51,7 +51,7 @@ Here are some simple commands to get you started:
|
||||
|
||||
Simple Stock Bot is a community-supported project, thriving on the contributions from its users. It's sustained entirely through donations to cover server costs and premium market data subscriptions, ensuring it remains free for everyone.
|
||||
|
||||
Feeling generous? You can support the project by [donating](https://simplestockbot.com/donate/), following on [Twitter](https://twitter.com/AnsonBiggs), or contributing on [GitLab](https://gitlab.com/simple-stock-bot).
|
||||
Feeling generous? You can support the project by [donating](https://simplestockbot.com/donate/), following on [Twitter](https://twitter.com/AnsonBiggs), or contributing on [GitLab](https://gitlab.com/simple-stock-bots/simple-stock-bot).
|
||||
|
||||
## Dive Deeper
|
||||
|
||||
|
@ -32,7 +32,6 @@ The Simple Stock Bot looks at every message it can see and tries to detect stock
|
||||
|
||||
This command allows you to query real-time data for stock options. By simply inputting the stock symbol, strike price, month, and specifying either a call or a put, you can get the latest options data right at your fingertips. For example, `AAPL $220 December call` will provide the current data for Apple's call option with a $220 strike price expiring in December.
|
||||
|
||||
|
||||

|
||||
|
||||
## `/donate [Amount in USD]` :fontawesome-brands-telegram-plane:
|
||||
@ -104,7 +103,9 @@ Gets the latest trending stocks and their change in price
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
$GME: Gamestop Corporation - Class A, 5.06%
|
||||
$MMAT: Meta Materials Inc, 4.77%
|
||||
$$BTC: Bitcoin, -0.83%
|
||||
|
||||
$$
|
||||
BTC: Bitcoin, -0.83%
|
||||
$$ETH: Ethereum, 6.06%
|
||||
$$DOGE: Binance-Peg Dogecoin, 0.14%
|
||||
|
||||
@ -184,3 +185,4 @@ full list of stock symbols and return the price of the ticker. Then once you sel
|
||||
want the bot will send a message as you in that chat with the latest stock price.
|
||||
The bot also looks at every message in any chat it is in for stock symbols.Symbols start with a
|
||||
`$` followed by the stock symbol. For example:$tsla would return price information for Tesla Motors.
|
||||
$$
|
||||
|
@ -5,4 +5,4 @@ Your feedback and experience with Simple Stock Bot is invaluable. Whether you've
|
||||
- **Telegram**: Drop me a message on [Telegram](https://t.me/MisterBiggs).
|
||||
- **Discord**: Feel free to reach out on Discord at `MisterBiggs#0465`.
|
||||
- **Twitter**: Send me a tweet on [Twitter](https://twitter.com/AnsonBiggs).
|
||||
- **GitLab**: For technical issues or feature requests, feel free to open an issue on our [GitLab Repository](https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot).
|
||||
- **GitLab**: For technical issues or feature requests, feel free to open an issue on our [GitLab Repository](https://gitlab.com/simple-stock-bots/simple-stock-bot).
|
||||
|
@ -17,17 +17,19 @@ Ensure the following are installed or obtained before proceeding:
|
||||
- **[marketdata.app](https://dashboard.marketdata.app/marketdata/aff/go/misterbiggs?keyword=web)**: Sign up to get an API key. A free tier is available and should suffice for private groups. More details [here](https://dashboard.marketdata.app/marketdata/aff/go/misterbiggs?keyword=repo).
|
||||
|
||||
!!! tip
|
||||
The bot will still operate without a [marketdata.app](https://dashboard.marketdata.app/marketdata/aff/go/misterbiggs?keyword=repo) key but will revert to using only cryptocurrency data.
|
||||
The bot will still operate without a [marketdata.app](https://dashboard.marketdata.app/marketdata/aff/go/misterbiggs?keyword=repo) key but will revert to using only cryptocurrency data.
|
||||
|
||||
!!! note
|
||||
To enable donation acceptance, obtain a Stripe API key and provide a `STRIPE` key to your bot. [https://stripe.com/]()
|
||||
To enable donation acceptance, obtain a Stripe API key and provide a `STRIPE` key to your bot. [https://stripe.com/]()
|
||||
|
||||
## Setup Instructions
|
||||
|
||||
1. **Download/Clone the Repository**:
|
||||
|
||||
- Download or clone this repository to your local machine.
|
||||
|
||||
2. **Configure Environment Variables**:
|
||||
|
||||
- Navigate to the project directory and locate the `.env` file.
|
||||
- Fill in the `.env` file with your obtained API keys:
|
||||
|
||||
@ -41,6 +43,7 @@ Ensure the following are installed or obtained before proceeding:
|
||||
Alternatively, pass the variables using Docker Compose environment variables or command-line arguments.
|
||||
|
||||
3. **Build and Run the Bot:**
|
||||
|
||||
- Open a terminal in the project directory.
|
||||
- Build and run both bots using Docker Compose:
|
||||
|
||||
|
@ -9,25 +9,31 @@ Discover a new level of financial discussion with Simple Stock Bot, your go-to s
|
||||
## [Commands](commands.md)
|
||||
|
||||
### Real-Time Stock and Cryptocurrency Updates
|
||||
|
||||
- Get live price updates of stocks and cryptocurrencies.
|
||||
- Symbol Detection: Use `$` for stocks and `$$` for cryptocurrencies, e.g., `$tsla` for Tesla and `$$btc` for Bitcoin.
|
||||
|
||||
### Intraday and Historical Data Visualization
|
||||
|
||||
- `/intra`: View a stock's movement since the last market open or a cryptocurrency's 24-hour chart.
|
||||
- `/chart`: Provides a chart of the last month's trading data up till the day before.
|
||||
|
||||
### Trending Assets Awareness
|
||||
|
||||
- `/trending`: Discover the latest trending stocks and cryptocurrencies and their price changes.
|
||||
|
||||
### In-App Assistance and Support
|
||||
|
||||
- `/help`: Provides a quick summary of available commands for easy reference.
|
||||
- `/donate`: Support the maintenance of the bot to ensure continued free access.
|
||||
|
||||
### User-Friendly Interaction
|
||||
|
||||
- Easy symbol and command usage for a smooth user experience.
|
||||
- Engage with a community of financial enthusiasts and share insights effortlessly.
|
||||
|
||||
## [Contact](contact.md)
|
||||
|
||||
Need assistance or have inquiries? Feel free to reach out and I'll be happy to help.
|
||||
|
||||
## Powered by MarketData.app
|
||||
|
@ -1,14 +1,12 @@
|
||||
site_name: Simple Stock Bot
|
||||
site_url: https://simplestockbot.com
|
||||
edit_uri: /simple-stock-bots/site/tree/master/site
|
||||
repo_url: https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot
|
||||
repo_url: https://gitlab.com/simple-stock-bots/simple-stock-bot
|
||||
repo_name: Simple Stock Bots
|
||||
|
||||
site_description: Simple Discord and Telegram chat bots for Stock Market Data.
|
||||
site_author: Anson Biggs
|
||||
copyright: <a href="https://ansonbiggs.com">Anson Biggs</a> 2018 </br> Available Under an <a href="/LICENSE/">MIT LICENSE</a> </br>
|
||||
|
||||
|
||||
nav:
|
||||
- Home: index.md
|
||||
- Commands: commands.md
|
||||
@ -56,19 +54,14 @@ extra:
|
||||
link: https://dashboard.marketdata.app/marketdata/aff/go/misterbiggs?keyword=web
|
||||
name: MarketData.app for stock data
|
||||
|
||||
|
||||
|
||||
|
||||
extra_css:
|
||||
- stylesheets/phone.css
|
||||
|
||||
|
||||
plugins:
|
||||
- search
|
||||
- social
|
||||
- blog
|
||||
|
||||
|
||||
markdown_extensions:
|
||||
- attr_list
|
||||
- pymdownx.emoji:
|
||||
|
@ -10,7 +10,7 @@ class T_info:
|
||||
license = re.sub(
|
||||
r"\b\n",
|
||||
" ",
|
||||
r.get("https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot/-/raw/master/LICENSE").text,
|
||||
r.get("https://gitlab.com/simple-stock-bots/simple-stock-bot/-/raw/master/LICENSE").text,
|
||||
)
|
||||
|
||||
help_text = """
|
||||
|
Loading…
x
Reference in New Issue
Block a user