Skip to main content

Client library for the Architect trading platform.

Project description

architect_py

Example usage

import asyncio
from architect_py.client import Client


async def main():
    c = Client(
        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

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-0.4.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

architect_py-0.4.1-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: architect_py-0.4.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Darwin/23.4.0

File hashes

Hashes for architect_py-0.4.1.tar.gz
Algorithm Hash digest
SHA256 255f7d520e47f9ff65c330c4d67f7428fa2de6930922907a9c737497ea8f014c
MD5 a8bd0f3a1abc10185cba8f29ae08a062
BLAKE2b-256 22e344a98a6e0683db929c123330a95c0ceee6c6564cdaca6505dc3fbc7e085e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: architect_py-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Darwin/23.4.0

File hashes

Hashes for architect_py-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 524fe958b8dd1d74f54cad91612cf5e8c0e9fcf38c6800d9d95b28b818ac959a
MD5 6d6b8bd47b8e8cc5e8ba01f4b7810566
BLAKE2b-256 74302a42af7e3b647ba44f000d3bbd299dfbac213a76da84617d771a02bcef35

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