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.37.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 062ee1007a02950b4931b24fb506b9aee5a4d90768574816e95af13366a948e2 |
|
MD5 | b3af63ffbc7bc1309f4b1c36f747a952 |
|
BLAKE2b-256 | 37cfdc358df91e0f50cc3f171ba1961d2f6dd27e123a0f37647a858359098bec |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.37-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cd4dd2829468acbb6531efd83173deb2b2367961d8317af24330d8a4ae9791f |
|
MD5 | 94b915b1d59f218e3ca4415a7fd98b54 |
|
BLAKE2b-256 | 5c3cf3b556b6a19dc9240b94f2bd757133804715a95d1176c8841133f7a5d7a9 |