Skip to main content

A Python library for Satang Pro API

Project description

Satang Pro Python

A Python library for satang.pro API

Releases

  • 1.0.0 releases first version

Table of Contents

Installation

pip install satang-pro

Usage

from satang_pro import SatangPro

Initial a object

Parameter:

  • api_key string
  • secret_key string

Function:

API_KEY = "live-9700657ce6984..."
SECRET_KEY = "ctyf9ZW2QO6ejpFU..."

sp = SatangPro(api_key=API_KEY, secret_key=SECRET_KEY)

Viewing Orders

Parameter:

  • pair string a pair symbol, such as 'btc_thb', 'eth_thb'

Function:

sp.orders(pair='btc_thb')

Response:

{
  'bid': [
    {
      'price': '221000',
      'amount': '0.15473'
    },
    {
      'price': '219456.001',
      'amount': '0.32597'
    }
  ],
  'ask': [
    {
      'price': '221400',
      'amount': '0.02607'
    },
    {
      'price': '221480.99324974',
      'amount': '0.99999'
    }
  ]
}

Viewing Orderbook Tickers

Function:

sp.orderbook_tickers()

Response:

{
  'BCH_THB': {
    'bid': {
      'price': '7011',
      'amount': '19.2023'
    },
    'ask': {
      'price': '8000',
      'amount': '0.0209'
    }
  },
  'BNB_THB': {
    'bid': {
      'price': '400',
      'amount': '25'
    },
    'ask': {
      'price': '419.9999978',
      'amount': '200'
    }
  }

Viewing User Info

Function:

  sp.users()

Response:

{
  "id": 999,
  "email": "satang-user@satang.com",
  "identity_verification_level": "level_1",
  ...
}

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-1.0.0.tar.gz (3.1 kB view hashes)

Uploaded Source

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