A python package to interact with the tradingbot22 backend. used in tradingbot22-tradingbots
Project description
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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b31945d623e0fc6361ff9641ec1e63460de83788b63fe5098b764af2e9b51a0e |
|
MD5 | 54971d5fc20ff60b62f73f1d9a0adbb6 |
|
BLAKE2b-256 | fa8861df23ab1d95b1acb44eca1126c25afe6ec1286d89da9e67195756aae8f4 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc981a6a793fec64e48a894f7c776dc935ca0a04f52e579e10f1fbc235de504e |
|
MD5 | dd29ff4ce89f1191b6146ae3e3b9921b |
|
BLAKE2b-256 | d90f26d777135bda4f259f4c9a03358f995ab56d05d6b90277e0f7dcd4aef757 |