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.4.1.post1.tar.gz
(20.1 kB
view details)
Built Distribution
File details
Details for the file architect_py-0.4.1.post1.tar.gz
.
File metadata
- Download URL: architect_py-0.4.1.post1.tar.gz
- Upload date:
- Size: 20.1 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 | 2cdebe56e94ad05e4316d532eaf2cd92bec4181800bef0c2506d7c66590cb0f9 |
|
MD5 | e98d8241b25f9c04102d5529a929005c |
|
BLAKE2b-256 | bc0f0254574472002d7f3989dc8957435a9529a02c3f62d4b108f74b55718477 |
File details
Details for the file architect_py-0.4.1.post1-py3-none-any.whl
.
File metadata
- Download URL: architect_py-0.4.1.post1-py3-none-any.whl
- Upload date:
- Size: 29.5 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 | 425d0a4788d6a32bf63c5e48ad810f4645f50d586b9602ebe6f9e8ef9311c01b |
|
MD5 | c0c34ca0f7d8ea4a1402c86a82ee3716 |
|
BLAKE2b-256 | ab17d42336184f7c9fac8a44f2ec031650ac2a6ba96653d9570e621240c376f8 |