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.42.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba6481b9095dea055fd7ca7398fcb9592153afaa434e716881ff72f7385038e4 |
|
MD5 | 02da3e76c310f755bd77ae9e87837a9b |
|
BLAKE2b-256 | a0d86bb1dd584ba8c4fff5a56db9e6f035ba4c14f102290dbed9d0e483ef545a |
Close
Hashes for basebot22_basebot_JustinGuese-0.3.42-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a91747089767dbc95d8009e72b2b12e5cfd610cbf9b4596572e7579c6aecbe1 |
|
MD5 | 13ed360840122a300dec3f33b5835467 |
|
BLAKE2b-256 | 703eb21caf7856a059f478b517f704cf037c6982044b39320265a9010613de97 |