satang-api
  • Introduction
  • Authentication
  • Sign Request Example
    • Javascript
    • Python
    • Golang
  • APIs
    • Public
      • Orders
    • Private
      • Deposits
      • Crypto Deposits
      • User/Wallet
      • Orders
    • Portal (Obsoleted)
  • APIs V3
    • General information
      • Kline Chart Interval
      • Authorization
        • Endpoint Security types
    • Public
      • Exchange Information
      • Depth
      • Kline/Candlestick data
      • Ticker
      • Aggregate trade
    • Private
      • Orders
      • Listen Key
    • Websockets
      • General WSS information
      • User Data Streams
      • Streams
        • Aggregate trade
        • Depth
        • Kline
        • Ticker
  • Satang.pro SDK
Powered by GitBook
On this page

Was this helpful?

  1. Sign Request Example

Python

Example Signing Code in Python

Signing request param with encrypt

import hashlib
import hmac

api_secret = '...'

request_header = 'amount='+str(amount)+'&nonce='+str(nonce)+'&pair='+str(pair)+'&price='+str(price)+'&side='+str(side)+'&type=limit'

encrypt = hmac.new(api_secret, request_header, digestmod=hashlib.sha512).hexdigest()

PreviousJavascriptNextGolang

Last updated 3 years ago

Was this helpful?