Skip to main content

Wrapper for Cryptopia API

Project description

Pytopia

Pytopia is a library that allows you to interact with Cryptopia API.

Requirements

  • Python (3.6, 3.7)

Installation

To install this package, you need to make sure pip is installed:

pip install pytopia

Example

Let's take a look over a simple example on how to use it:

from pytopia import Pytopia

pytopia = Pytopia(PUBLIC_KEY, PRIVATE_KEY)

# Get the last traded price for every trade pair
trade_pairs =  pytopia.get_trade_pairs()

for trade_pair in trade_pairs:
    market_history = pytopia.get_market_history(trade_pairs[0]['Id'])
    last_traded_price = market_history[0]['Price']
    print(last_traded_price)

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

pytopia-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

pytopia-1.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pytopia-1.0.0.tar.gz.

File metadata

  • Download URL: pytopia-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for pytopia-1.0.0.tar.gz
Algorithm Hash digest
SHA256 facccb4e845fc17e51bb4cd17f37734018db858a323b3983678150149c49d154
MD5 b3f3d3a06ee159d4c72f31d126ca0de1
BLAKE2b-256 99982c231e0f53faebeb810358c022aff116bdaee8227aba3c18790d98175e22

See more details on using hashes here.

File details

Details for the file pytopia-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pytopia-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for pytopia-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af4f9a04ad538a01bf718ee8bec777ae0b62b1a3c48e7efa2fb6f929bac9aec5
MD5 59618ec44232836ad715a7b0bbd88909
BLAKE2b-256 47bbef57e9e7a836dae0553eb9edb4f2d918190b92d9a893618f191f59f44467

See more details on using hashes here.

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