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
Close
Hashes for basebot22-basebot_JustinGuese-0.3.33.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c09acd1de37f2badaa8a8ca7be1878bd3850e42470cb3810e494f8576e4e511a |
|
MD5 | d4db793251b22ad85b9b7f592e2b9291 |
|
BLAKE2b-256 | de53a5151e7c41f22e52120b0f74ac34ad00c1fdf975de9782115bed890e9df3 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15ec573484030724747b87e7855bd2c951211ff0c6c652245e2fa093d2d11ea2 |
|
MD5 | e872a3100707c7ee57cfd9b993014935 |
|
BLAKE2b-256 | e7c9bd6fc70e6c9046edbe34b232d23e3ce9d2ea9a3b1d35a0e70e05b67b419a |