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.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c3a04548ee426249c23027fa4991bad6340246da799b669e05075dad0277e58 |
|
MD5 | d76ef44dc639f383c7ba271db16f9e8b |
|
BLAKE2b-256 | 0d1749c25fe160dbe80cdb01755257b2af04bada60e6a5edf2362973b3e6c7bd |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4c10c7ed42c1a776aa99f5d44b278a059dae1b84088d63e7904f831df06806f |
|
MD5 | a533ae1b03d5d633c2a84325597ca2ae |
|
BLAKE2b-256 | 957d6cbb1b24b924eb94d2ea8c103c285b9aabdf4e733bc2529bc2361221bfe0 |