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-1.0.0.tar.gz
(25.3 kB
view details)
Built Distribution
File details
Details for the file architect_py-1.0.0.tar.gz
.
File metadata
- Download URL: architect_py-1.0.0.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0793e25c336cba59e9655c3a5923fa8c798caf5d6d83033a0a37b6b23a058986 |
|
MD5 | 0c8a72b394cf6bac2fbed7536aa12bf2 |
|
BLAKE2b-256 | 8380bf76575395ea826e0f89fb7d41b6dbd246f0e996d1b328596f9c96633c52 |
File details
Details for the file architect_py-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: architect_py-1.0.0-py3-none-any.whl
- Upload date:
- Size: 40.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26a2dc2551b3fbf8f00b2b861dd54e61809ac69059bc788b4b09a06aaa3dc576 |
|
MD5 | fa289feeeb5580f02d19a57d7d4ab162 |
|
BLAKE2b-256 | a0dd5be315044af15524f04b438e407775e457d792ea93a7c6f2f8099e4b7dfa |