Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for satang-pro-signer-x, version 0.0.1.dev2
Filename, size File type Python version Upload date Hashes
Filename, size satang_pro_signer_x-0.0.1.dev2-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size satang-pro-signer-x-0.0.1.dev2.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page