Skip to main content

Pool OpenAPI SDK.

Project description

pool open api sdk

setup

  1. download sdk code package:
git clone https://github.com/btc-top/pool-api-sdk-python3.git
  1. enter directory:
cd pool-api-sdk-python3
  1. setup package:
python setup.py install

usage

example code:

from btc_top_pool_api_sdk import Client


open_api_url='https://test/open-api/'
client_id='xxx'
secret_key='xxxx'
secret_salt='xxxxx'

client = Client(
    url=open_api_url,
    client_id=client_id,
    secret_key=secret_key,
    secret_salt=secret_salt)

result = client.call_api(
    'Speed.GetSubAccountAllWorkersHourlySpeedBulk',
    {'userName': 'test1', 'start': '2020-01-01 00:00:00', 'end': '2020-01-01 23:00:00'})

print(result)

History

1.0.0 (2020-10-29)

  • First release.

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

btc_top_pool_api_sdk-1.0.0.tar.gz (2.3 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