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.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76031627d4cdf262d7897a5c33dc37889bb1edac4d810034461e84851700ac55 |
|
MD5 | 6a36620bc3e2807888e7c98b1a4f2bcc |
|
BLAKE2b-256 | e7b1a0ea88548aeafa34d8da3f41c096cbe22bdb9e3ae79a6a4b0cd8253c0712 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b41218b9a59a199019285e831636b91f45e8c6172a1a6424774679dd1232f2f3 |
|
MD5 | 1b45eb1984f43eefb2d1de0918ac18f7 |
|
BLAKE2b-256 | f65dfdd5802784da940486496f229e04b610d182ee57c49f90cb8239bf6d539c |