Client library for the Architect trading platform.
Project description
architect_py
Example
import asyncio
from architect_py.client import Client
async def main():
c = Client(
"https://<your installation domain>:4567",
"wss://<your installation domain>:4567/subscriptions",
"<api key>",
"<api secret>"
)
print(await c.execute_async("query { me { userId email } }"))
s = await c.subscribe_async(
"""
subscription {
trades(market: "BTC Crypto/USD*COINBASE/DIRECT") {
time
direction
price
size
}
}
"""
)
async for trade in s:
print(trade)
asyncio.run(main())
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.2.1.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file architect_py-0.2.1.tar.gz
.
File metadata
- Download URL: architect_py-0.2.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fde4bf2fbcfb62ddb67d0409d32bad4607912880585fa960c380fc54ffe49874 |
|
MD5 | f54a40bc053811e46c4f5cf1643bb383 |
|
BLAKE2b-256 | 66f957a1d2460da9543251f1c5fad9adf483887dc050f7bcfc69e7921df82cf5 |
File details
Details for the file architect_py-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: architect_py-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d46b6aa19169bdb4f7a893fbb9fe49b9b9341700be69b11a87af8b5ec36a65b |
|
MD5 | 8eb2f5e4f0c21602f4b636a9ab07246a |
|
BLAKE2b-256 | 87eb847344e3c3280a538583aaeebf78857efe422432bbeddb7ed13410f8f9ef |