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

Uploaded Source

File details

Details for the file satang-pro-1.0.0.tar.gz.

File metadata

  • Download URL: satang-pro-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for satang-pro-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2158f96a7d7f5a4e525f342e6f205402dbf28811edc43092adbd14463e403838
MD5 135482ce7db00a5efe32150ba4dcd958
BLAKE2b-256 36d7c33623454116acfde9bebd277bd8d8b0582806fb7cd1a86099c1991801e4

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