This SDK provides interface that helps making trading operations within the Ultrade network easier
Project description
ultrade-python-sdk
Sources:
-
ultrade_sdk.Client — main client, requires credentials
-
ultrade_sdk.api — module for interaction with ultrade public API
Quick start
from algosdk.v2client import algod
from ultrade.sdk_client import Client
algod_token = "" # Your algod token here, for public node usage pass an empty string
algod_address = "https://testnet-api.algonode.cloud" # Your algod node address.
# create algod client
algod_client = algod.AlgodClient(algod_token, algod_address)
options = {
"network": "testnet",
"algo_sdk_client": algod_client,
"api_url": None,
}
credentials = {"mnemonic": 'alpha bravo charlie delta...'}
# create ultrade-sdk client
client = Client(credentials, options)
Testing:
To run tests, type:
pytest -n auto tests
Generating Documentation:
To generate .md documentation, run:
gendocs --config mkgendocs.yml
Docs will be located in the docs/
directory.
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
ultrade-sdk-0.1.1.tar.gz
(13.6 kB
view hashes)
Built Distribution
Close
Hashes for ultrade_sdk-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38c5339ebb9d1495ca86c1d214fdfbd992fe9bf2b658b0ad6809d32b1f714123 |
|
MD5 | 9ea256691f3787b6a953dbbec55e252c |
|
BLAKE2b-256 | f3eb0d80412d8d1b243719546a1b080e493fc6da35b53f346010ec91503be4e0 |