Skip to main content

Fetch the current price of Ark

Project description

[![Build Status](https://travis-ci.org/Highjhacker/arkprice.svg?branch=master)](https://travis-ci.org/Highjhacker/arkprice)
[![HitCount](http://hits.dwyl.io/Highjhacker/priceark.svg)](http://hits.dwyl.io/Highjhacker/priceark) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
# ArkPrice

Fetch the price of Ark in any (crypto)currency.

## Built with
- [Python](https://www.python.org/)
- [Requests](http://docs.python-requests.org/en/master/)

## Installation

```shell
$ pip install arkprice
```

## Usage

### Fetching the price

You can fetch the price without any parameter, by default the return value will be in USD,
or specify multiples (crypto)currency you want to use.

```python
from ArkPrice import get_price

print(get_price("eur"))
print(get_price("eur", "btc", "usd"))
>>> {'EUR': 4.41}
>>> {'EUR': 4.41, 'BTC': 0.0004976, 'USD': 5.39}
```

### Output the price

Output the price directly in the console with the correct symbol of the currency.

```python
from ArkPrice import output_price

output_price("eur", "btc", "usd")

>>> 4.46 €
>>> 0.0004994 Ƀ
>>> 5.43 $
```

## TODOS

- [x] Core code.
- [ ] Write documentation.
- [x] Unit testing.
- [x] Package it.
- [x] Travis.
- [ ] Missing support for python 3.2.
- [ ] OSX Support ?
- [ ] Windows support ?
- [ ] More markets ?
- [x] CryptoCompare
- [ ] CoinMarketCap
- ...

## Authors

- Jolan Beer - Highjhacker

## License

ArkPrice is under MIT license. See the [LICENSE file](https://github.com/Highjhacker/arkprice/blob/master/LICENSE) for more informations.

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

ArkPrice-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file ArkPrice-0.1.1.tar.gz.

File metadata

  • Download URL: ArkPrice-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ArkPrice-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6a90e3fec679b2f847ee0cac88dcaeab9fe93a35907a13bed5e38eb27983cd47
MD5 fbec0919f51126ef3bfec8848159650a
BLAKE2b-256 c1c4daeaa4b69c4b40bcd27c4d58f16b34e8d7ce0fd66ef52e7e158cea73017d

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