Skip to main content

Upload Python Package

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))

Metadata

Release files for basebot22-basebot-JustinGuese 0.3.43

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for basebot22-basebot-JustinGuese 0.3.43
File Size Uploaded
basebot22-basebot_JustinGuese-0.3.43.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for basebot22-basebot-JustinGuese 0.3.43
File Interpreter ABI Platform
basebot22_basebot_JustinGuese-0.3.43-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / basebot22-basebot_JustinGuese-0.3.43.tar.gz

Download URL basebot22-basebot_JustinGuese-0.3.43.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7bf5f5917ce6c1efa259fc536383593da23a073990e0cbd5bdbf41525c2e6e2c
BLAKE2b-256 checksum
How to use checksums
f815f921eed326318cf43cdac3dc57d510eaeba945318a3774433ca0b8c262e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / basebot22_basebot_JustinGuese-0.3.43-py3-none-any.whl

Download URL basebot22_basebot_JustinGuese-0.3.43-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60449c9bc5e8f3967caccd7d314739c8f6137009a3c4a9a85c9aaf062e8679dc
BLAKE2b-256 checksum
How to use checksums
40a6d9d3d55c2792450f03ce3291f9fd8879d840913d9d80c25dff5eeb4ea556
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page