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.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fe360cd67038d6902c657a9efa0cdd0fb386c1e28f331ce3ecb6d1b841d9af9 |
|
MD5 | 03a10bf7fcb93ae2f916868c59a04df3 |
|
BLAKE2b-256 | c40d06b1b6d0ae4566e3a680dd300ea1c4281c7c50fa156cc78b1800099da870 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e874dcd565bb53f0f6e788f1310ef4fd82a67df2bb4015e76a5e47a535d0bdc |
|
MD5 | 399cc527a57b12ce289c5935f00355e5 |
|
BLAKE2b-256 | 39985d3f27135762645f8255ef72eb275b9941c58d7624b4021d8c7222558996 |