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.0.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file architect_py-0.2.0.tar.gz
.
File metadata
- Download URL: architect_py-0.2.0.tar.gz
- Upload date:
- Size: 5.7 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 | 1427a15ac744fe43cab90cdd40d59c0d3af1329471068dee29058dfbb9c39ccd |
|
MD5 | 632c3c6df5a5a257546699300712c08a |
|
BLAKE2b-256 | 12c1b71b75b837e13b347f0eeb7c0089699500fd06ab9a3eb81fce69b46a3281 |
File details
Details for the file architect_py-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: architect_py-0.2.0-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 | 1fc94fbc56d95aaf1036d6c4963cedae6ae3ae17d0424a34cd8a264576702dc5 |
|
MD5 | bfc3369edc76b5d89e3c71f875429754 |
|
BLAKE2b-256 | 27a245873a2168c7f2fa03a034717b81153320e9282863065925c2dd5eaebf71 |