Skip to main content

Python wrapper for just-mining.com API

Project description

Just-Mining-Py

Python wrapper for just-mining.com API.

Official documentation: https://docs.just-mining.com/

Install

python -m pip install -U just-mining-com-api

Usage

from just_mining_com_api import JustMining

if __name__ == '__main__':
    API_KEY = 'MY_JUST_MINING_API_KEY'
    jm = JustMining(API_KEY)

    masternodes = jm.masternodes()
    print(f"Masternodes: {len(masternodes)}")
    print(masternodes)

    clouds = jm.clouds()
    print(f"Clouds: {len(clouds)}")
    print(clouds)

    cloud_id = 'CLOUD_ID'
    cloud = jm.clouds(cloud_id)
    print(f"Cloud {cloud_id}:")
    print(cloud)

    stackings = jm.stakings()
    print(f"Stackings: {len(stackings)}")
    print(stackings)

    currency_code = 'OSMO'
    stacking = jm.stakings(currency_code)
    print(f"Stacking {currency_code}:")
    print(stacking)

    lendings = jm.lendings()
    print(f"Lendings: {len(lendings)}")
    print(lendings)

    currency_code = 'USDT'
    lending = jm.lendings(currency_code)
    print(f"Lending {currency_code}:")
    print(lending)

    wallets = jm.wallets()
    print(f"Wallets: {len(wallets)}")
    print(wallets)

    wallet_addresses = jm.wallet_addresses()
    print(f"Wallet addresses: {len(wallet_addresses)}")
    print(wallet_addresses)

    operations = jm.operations()
    print(f"Operations: {len(operations)}")
    print(operations)

    operation_id = 'OPERATION_ID'
    operation = jm.operations(operation_id)
    print(f"Operation {operation}")
    print(operation)

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

just-mining-com-api-0.0.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

just_mining_com_api-0.0.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file just-mining-com-api-0.0.1.tar.gz.

File metadata

  • Download URL: just-mining-com-api-0.0.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.1

File hashes

Hashes for just-mining-com-api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5abddb09bef935dcfde53c5981122c3670e359f17ffba524dc658f4846016680
MD5 816439748218f544c6cc8141e3afaa7b
BLAKE2b-256 88cf5966ee74286607bdc7323290d258e934ac94db5d277e9b29251738308448

See more details on using hashes here.

File details

Details for the file just_mining_com_api-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for just_mining_com_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0a123914782e650e26251367c9aeab55b7a77542180f3c2ddae1d559c1fd9e2
MD5 2c09489915b3b4e7d43ab2b101eeab26
BLAKE2b-256 614fda8803146a373efe2e3603753d6ee8cd2567636041956d995f839198a186

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