Skip to main content

fundedops

The official Python SDK for the FundedOps API — typed access to accounts, positions, orders, trade history, and real-time streaming, backed by pydantic v2 models that mirror the wire format exactly.

Supports both MT4 and MT5 accounts — the same clients, methods, and models work identically against either platform.

This file doubles as the package's PyPI page.

Install

pip install fundedops

Requires Python 3.10+.

Authentication

Every request carries your API key as a bearer token (Authorization: Bearer fo_...). Create a key from the developer portal. The key travels in the WebSocket URL's query string — never log stream URLs.

Usage

Two first-class clients with an identical method surface — synchronous FundedOps and asynchronous AsyncFundedOps. Every method lives under the client.accounts namespace, except wait_until_connected and stream, which are on the client itself.

Synchronous

from fundedops import FundedOps

with FundedOps(api_key="fo_live_...") as client:
    for account in client.accounts.list():
        print(account.id, account.state, account.connection_status)

    info = client.accounts.account_information(account.id)
    print(info.balance, info.equity, info.currency)

    # Deploy and block until connected (timeout is mandatory).
    client.accounts.deploy(account.id)
    client.wait_until_connected(account.id, timeout=180)

The full lifecycle and read surface is available on client.accounts: create, get, list, update, delete, deploy, undeploy, redeploy, account_information, positions, pending_orders, history_deals, and history_orders.

Asynchronous

AsyncFundedOps is the exact awaitable mirror — same constructor, same method names, same return types (a parity test enforces it):

import asyncio
from fundedops import AsyncFundedOps

async def main():
    async with AsyncFundedOps(api_key="fo_live_...") as client:
        accounts = await client.accounts.list()
        info = await client.accounts.account_information(accounts[0].id)
        print(info.equity)

asyncio.run(main())

Streaming

client.stream([account_id, ...]) opens a WebSocket, subscribes each account, answers server pings for you, and yields typed events:

from fundedops import FundedOps

client = FundedOps(api_key="fo_live_...")
for event in client.stream(["9b2c..."]):
    if event.type == "positions_updated":
        print("open:", len(event.updated), "closed:", event.removed_ids)

Errors

Every non-2xx response raises a typed exception derived from FundedOpsError (ValidationError, UnauthorizedError, PaymentRequiredError, NotFoundError, RateLimitedError with retry_after, and more), each carrying status, message, and request_id.

Documentation

Full API reference: https://api.fundedops.com/v1/docs

License

MIT

Metadata

Release files for fundedops 0.1.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 fundedops 0.1.2
File Size Uploaded Provenance Actions
fundedops-0.1.2.tar.gz 26.3 kB Without provenance Details for fundedops-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 43.4 kB

Release files / fundedops-0.1.2.tar.gz

Download URL fundedops-0.1.2.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
912e91fc5d31480f9f00c632e22c5138d52227f1e249ffb3f08c6a1dc9d49e9a
BLAKE2b-256 checksum
How to use checksums
141cba19e7c8968337e51ebcecb4bc5130731c21520a258bed14c1d12bc33b6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / fundedops-0.1.2-py3-none-any.whl

Download URL fundedops-0.1.2-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af542c78682902d2143b131c8bff973e2e1b4262f407c24c88cf6210aad2fac2
BLAKE2b-256 checksum
How to use checksums
5673c670257cd222c537504053b33fb0ddc0511e1eb85f4f6725bccbed2d12eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for fundedops 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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