An implementation of Satang Pro signing request scheme
Project description
satang-pro-signer
An implementation of Satang Pro request signing scheme.
https://docs.satang.pro/authentication
installation
pip install satang-pro-signer-x
usage
import json
import satang_pro_signer # import signer
# prepare secret
secret = bytes.fromhex('8781e58f94f8b2a58b6aa30649fd6a46')
# create signer
signer = satang_pro_signer.Signer(secret)
# prepare payload to be sign
payload = json.loads('{"type":"limit","pair":"btc_thb", "side":"sell", "price":"100000", "amount":"100", "none":"1570763737"}')
# sign
signature = signer.sign(payload) # bytes
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
Built Distribution
Close
Hashes for satang-pro-signer-x-0.0.1.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 203a736b216896f364ad5d5211c8b05a60d63426c27ad3f0238addf0258c7bff |
|
MD5 | 6898b10dade4efc643e69049b37c14c5 |
|
BLAKE2b-256 | c504d64e59bea488494560d5fc3a7976a6b48899c9b0ef9a902f35579d365e19 |
Close
Hashes for satang_pro_signer_x-0.0.1.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4fcb2db4d4b317b193fbe69012ff76eb951bbc68f15887bdd14857bff41088f |
|
MD5 | 26a636ec1ee5c8b20a1722bd8f39d1dd |
|
BLAKE2b-256 | a5352444e9d0defba18c6b65189deeb9f5e863a097e894326d1fca07bb769d7d |