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.dev2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b6deb50f6f439f19637198b001f79958c21604dc71115d8dca30b7edb64e93 |
|
MD5 | 8766f519a77ad9036eadfa7fd3c4eb0e |
|
BLAKE2b-256 | ed6704def5b5441ee3f7f651dd4c7649f825b2e13a7e0014bb2e0bff55486ee7 |
Close
Hashes for satang_pro_signer_x-0.0.1.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a47e37edbe2df4da975259560885afcab9f0659fb68d1262fa91757fa7833a |
|
MD5 | 79f8979ff6dd39bac9315d2ae2e319e7 |
|
BLAKE2b-256 | d4ffa4982dfe3aaf9f4584c541c7af60154f622f54315283861ded50dab944b0 |