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
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-1.5.0.tar.gz
(57.6 kB
view details)
Built Distribution
File details
Details for the file architect_py-1.5.0.tar.gz
.
File metadata
- Download URL: architect_py-1.5.0.tar.gz
- Upload date:
- Size: 57.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | da24e9f56bbeb75e381a7728919da9be6da4006e3b0dde23a118c67eb6aa7202 |
|
MD5 | 787b86108e5fadca54c1d72f9f2779f4 |
|
BLAKE2b-256 | fc7cd73d7d1589798a2672c5bdd12356aa617338130e00c11997d56e6f803e09 |
File details
Details for the file architect_py-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: architect_py-1.5.0-py3-none-any.whl
- Upload date:
- Size: 98.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f3db052010c2708f57047fe64b19e370063e07af301e6ae4f83a8e1159d17fd |
|
MD5 | ec11148f0dbcc524fc1ddc9e86f63d74 |
|
BLAKE2b-256 | 1468e31821d7c41cedfde1d64158c6291a274985be581cfa2d4a0553ab85d288 |