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
Release history Release notifications | RSS feed
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.5.0.post1.tar.gz
(20.5 kB
view details)
Built Distribution
File details
Details for the file architect_py-0.5.0.post1.tar.gz
.
File metadata
- Download URL: architect_py-0.5.0.post1.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cf83448193ea24df29e2e1a6c643db79e550ef88b6371cfcc037049f8ed76f3 |
|
MD5 | e35e0ea746b9cf85077c75a60356df62 |
|
BLAKE2b-256 | 6cb30d47ee25c72953ba92faefc70e05b59deea8a9b7ec446b5d25f9c9633816 |
File details
Details for the file architect_py-0.5.0.post1-py3-none-any.whl
.
File metadata
- Download URL: architect_py-0.5.0.post1-py3-none-any.whl
- Upload date:
- Size: 30.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 408f3178e1366bc6202a785878dea4a22a6cadcf0c222115beb5f6ace9824317 |
|
MD5 | ba29304fa62198bf4caf2e15e882082e |
|
BLAKE2b-256 | 417897f0cef9f821ce599129f5aafc29f2aa8e24a9fc6062e4e13e45e7b2d27b |