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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f44b002f50db0d8074966d2d3220ec9e2b69f691a00266076b4ce470cb36e2e |
|
MD5 | 5534badcaee771e18fb546864c2eb36e |
|
BLAKE2b-256 | 3e7abbd6979bd612777dfa648d1671694e1ee3cb40f65bea72cbdbfadabd22c9 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a43573abc1d9eddf02aca234d7830bbf24a8a7b7a1739f33a67e2be112976d9 |
|
MD5 | 148fb4aec97c636e87af52ef8a1f5f63 |
|
BLAKE2b-256 | 04cebdf24d04b486afc6399a92e5ff7654d7f3bd8c2fb261541cc4dcc90dfddc |