Skip to main content

An implementation of Satang Pro signing request scheme

Project description

satang-pro-signer

Build Status PyPI version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

satang-pro-signer-x-0.0.1.dev2.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

satang_pro_signer_x-0.0.1.dev2-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

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