Skip to main content

TradovatePy

Python wrapper for the Tradovate API

Installation

pip install TradovatePy==0.1

Example

Get the current positions you have open.

NOTE: You need to replace values below with your info

import asyncio
from TradovatePy.models.session import Session
from TradovatePy.positions import Positions

if __name__ == "__main__":
    session = Session(
        "LIVE", 
        "YOUR_USERNAME", 
        "YOUR_PASSWORD", 
        "YOUR_SECRET_KEY", 
        "YOUR_DEVICE_ID", 
        "YOUR_APP_VERSION", 
        "YOUR_APP_ID", 
        123, # YOUR CID
    )
    print(
        asyncio.run(Positions(session).position_list())
    )

Metadata

Release files for TradovatePy 0.2

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

Source distribution (sdist)

Source distribution for TradovatePy 0.2
File Size Uploaded
tradovatepy-0.2.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TradovatePy 0.2
File Interpreter ABI Platform
TradovatePy-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / tradovatepy-0.2.tar.gz

Download URL tradovatepy-0.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d2aa5023fb9b4a0ec83c56616b1c0348d1de7f91988816e3448311c292273af8
BLAKE2b-256 checksum
How to use checksums
dafcce6595a3115c5171564acce048d80ba76e280c8c49be2927981811659270
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6

Release files / TradovatePy-0.2-py3-none-any.whl

Download URL TradovatePy-0.2-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b95964809369a011085580b01b66153c1aadf2607aa0269c4fd7c194e205faff
BLAKE2b-256 checksum
How to use checksums
f1b3e5d1f7419bc3db5c0e747008c0c444c17d2d36d7c767e1aef82ed7b4d638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

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