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.34.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1f2632514a5b872ba9265721a6732296e2259c471a65c2666bc7a699976e140 |
|
MD5 | 8cba124b2f71669d3cd830c4b6908f8f |
|
BLAKE2b-256 | c65a95361ebfbfb47af2494219217f2e0988886c7c43471e2f07c97a55399ee4 |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 823a73bb57979312b3ca4dd619b0e52211470f6fe116fa12765048519ae029a8 |
|
MD5 | 612118867efc44fa66e48b5abc35c132 |
|
BLAKE2b-256 | 7c5b9ee9d8613867c70ffb8e04c3c9fc334f35722a7d89c0814a9524f1e9df31 |