Skip to main content

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


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)

Uploaded Source

Built Distribution

architect_py-0.2.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for architect_py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1427a15ac744fe43cab90cdd40d59c0d3af1329471068dee29058dfbb9c39ccd
MD5 632c3c6df5a5a257546699300712c08a
BLAKE2b-256 12c1b71b75b837e13b347f0eeb7c0089699500fd06ab9a3eb81fce69b46a3281

See more details on using hashes here.

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

Hashes for architect_py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fc94fbc56d95aaf1036d6c4963cedae6ae3ae17d0424a34cd8a264576702dc5
MD5 bfc3369edc76b5d89e3c71f875429754
BLAKE2b-256 27a245873a2168c7f2fa03a034717b81153320e9282863065925c2dd5eaebf71

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page