Skip to main content

Client library for the Architect trading platform.

Project description

architect_py

Example usage

import asyncio
from architect_py.async_client import AsyncClient


async def main():
    c = AsyncClient(
        host="<your installation domain>",
        api_key="<api key>",
        api_secret="<api secret>"
    )
    print(await c.execute("query { me { userId email } }"))
    s = c.subscribe_trades("BTC Crypto/USD*COINBASE/DIRECT")
    async for trade in s:
        print(trade)


asyncio.run(main())

Running additional examples from this package

Clone this repository to run examples in the examples directory. This package uses poetry for dependency management. To enter a poetry virtual environment, make sure you have poetry installed and run the following from the repository root.

poetry shell
poetry install --sync 

export ARCHITECT_HOST="<your installation domain>"
export ARCHITECT_API_KEY="<api key>"
export ARCHITECT_API_SECRET="<api secret>"

python -m examples.trades

You can exit the poetry shell by running exit. Environment variables set within the shell are not persisted.

Maintainers

poetry run ariadne-codegen --config ariadne-codegen.toml poetry run ariadne-codegen --config ariadne-codegen.async.toml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

architect_py-1.4.0.tar.gz (53.6 kB view details)

Uploaded Source

Built Distribution

architect_py-1.4.0-py3-none-any.whl (93.4 kB view details)

Uploaded Python 3

File details

Details for the file architect_py-1.4.0.tar.gz.

File metadata

  • Download URL: architect_py-1.4.0.tar.gz
  • Upload date:
  • Size: 53.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Darwin/23.4.0

File hashes

Hashes for architect_py-1.4.0.tar.gz
Algorithm Hash digest
SHA256 ec1eda7dea9a314d4dd0c0f1eeeaa985b198655c736634d5121ef15706a95ba5
MD5 14826866aa1fac1b72a8f583fffca6d5
BLAKE2b-256 74c223c3de97bb97849c69023e8356c4b1bfd5ddc92084e840ef472df09ffeda

See more details on using hashes here.

File details

Details for the file architect_py-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: architect_py-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 93.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Darwin/23.4.0

File hashes

Hashes for architect_py-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efdc18799a10dd269e18d719f96887041836e7ef81981649cbcd012bea72912c
MD5 f778fc695bc962cfda6db244373becf8
BLAKE2b-256 f2427c4af9e7c02448777ee8860ae8f9a4ddc90e504cf6a0421ef6836c4b317b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page