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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file satang-pro-signer-x-0.0.1.dev2.tar.gz.

File metadata

  • Download URL: satang-pro-signer-x-0.0.1.dev2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for satang-pro-signer-x-0.0.1.dev2.tar.gz
Algorithm Hash digest
SHA256 60b6deb50f6f439f19637198b001f79958c21604dc71115d8dca30b7edb64e93
MD5 8766f519a77ad9036eadfa7fd3c4eb0e
BLAKE2b-256 ed6704def5b5441ee3f7f651dd4c7649f825b2e13a7e0014bb2e0bff55486ee7

See more details on using hashes here.

File details

Details for the file satang_pro_signer_x-0.0.1.dev2-py3-none-any.whl.

File metadata

  • Download URL: satang_pro_signer_x-0.0.1.dev2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for satang_pro_signer_x-0.0.1.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 96a47e37edbe2df4da975259560885afcab9f0659fb68d1262fa91757fa7833a
MD5 79f8979ff6dd39bac9315d2ae2e319e7
BLAKE2b-256 d4ffa4982dfe3aaf9f4584c541c7af60154f622f54315283861ded50dab944b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page