A python package to interact with the tradingbot22 backend. used in tradingbot22-tradingbots
Project description
Published on: https://pypi.org/project/basebot22-basebot-JustinGuese/
tradingbot22-basebot
python package to interact with the tradingbot22-backend, used in tradingbot22-tradingbots
pip install basebot22-basebot-JustinGuese
or
pip install -U git+https://github.com/JustinGuese/tradingbot22-basebot/
Import with
from basebot22.basebot import BaseBot
usage
bot = BaseBot("testbot")
print(bot.getPortfolio())
bot.buy("AAPL", 2000, amountInUSD=True)
print("portfolio after buy")
print(bot.getPortfolio())
print("portfolio after sell")
bot.sell("AAPL", 1500, amountInUSD=True)
print(bot.getPortfolio())
print("portfolio worth is: %.2f dollars" % bot.getPortfolioWorth())
print("next earnings calendar events:")
print(bot.getEarnings(only_now=True))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file basebot22-basebot_JustinGuese-0.3.43.tar.gz
.
File metadata
- Download URL: basebot22-basebot_JustinGuese-0.3.43.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bf5f5917ce6c1efa259fc536383593da23a073990e0cbd5bdbf41525c2e6e2c |
|
MD5 | 7844d443e5fd4fe633a89f5152d9fc9a |
|
BLAKE2b-256 | f815f921eed326318cf43cdac3dc57d510eaeba945318a3774433ca0b8c262e7 |
File details
Details for the file basebot22_basebot_JustinGuese-0.3.43-py3-none-any.whl
.
File metadata
- Download URL: basebot22_basebot_JustinGuese-0.3.43-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60449c9bc5e8f3967caccd7d314739c8f6137009a3c4a9a85c9aaf062e8679dc |
|
MD5 | 4881ee8d8eaf8889dd3ceb1ef5835939 |
|
BLAKE2b-256 | 40a6d9d3d55c2792450f03ce3291f9fd8879d840913d9d80c25dff5eeb4ea556 |