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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd4a83ff1c91b2b812fb0dc082d5cfde5132dd961f63dc6636e96b3074371e55 |
|
MD5 | 75803976d2b67281b15b409d0c00f796 |
|
BLAKE2b-256 | 46fcbb09835276eca861bba950e8415f37b16ff5583ada20d62c8ffecc576072 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 366270478e09cb9f993061a99f739ac0ccd544c61c86990f9c5800db095997d3 |
|
MD5 | 6c0a8c20f3d92268f2de7a7c17771ee1 |
|
BLAKE2b-256 | 9ab394fd179643764be2967dc6c22d2ce6867f7bc46609f0b2b650442e57e972 |