Skip to main content

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",
  ...
}

Metadata

Release files for satang-pro 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for satang-pro 1.0.0
File Size Uploaded Provenance Actions
satang-pro-1.0.0.tar.gz 3.1 kB Without provenance Details for satang-pro-1.0.0.tar.gz

Release files / satang-pro-1.0.0.tar.gz

Download URL satang-pro-1.0.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2158f96a7d7f5a4e525f342e6f205402dbf28811edc43092adbd14463e403838
BLAKE2b-256 checksum
How to use checksums
36d7c33623454116acfde9bebd277bd8d8b0582806fb7cd1a86099c1991801e4
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for satang-pro 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page