Skip to main content

MinigRigRentals.com python API integration

Project description

miningrigrentals-api-python
=================

MiningRigRentals.com API integration. Python sources.

##Intro

1. Download lib
2. Get API key and API secret on https://www.miningrigrentals.com/account/apikey account

At the moment you can use the ```python setup.py install``` method or just copy mrrapi.py into your project directory.

##How to use?

###1. Create your python project

###2. Add "import mrrapi"

###3. Create class
```python
mapi = mrrapi.api(mkey,msecret)
```

mkey - your API key

msecret - your API secret code


###4. Methods and parameters:

- rig_list
- rig_detail
- rig_update

####a) API method parameters

####b) API methods

rig_detail(rigID)

rig_list(min_hash=0, max_hash=0, min_cost=0, max_cost=0, rig_type='scrypt', showoff='no', order=None, orderdir=None)

rig_update(rig_id=None, rig_name=None, rig_status=None, hashrate=None, hash_type=None, price=None, min_hours=None, max_hours=None)

## Examples ##

Be sure to change mkey and msecret to your API key/secret if you want to update a rig.

### Get script rigs over 10 MH/s and under 0.0008

import mrrapi
mapi = mrrapi.api('mkey','msecret')
print mapi.rig_list(10,0,0,0.0008)

### Update rig 1000 to available and change price to 0.0009

import mrrapi
mapi = mrrapi.api('mkey','msecret')
print mapi.rig_update(1000,price=0.0009,rig_status='available')



##TODO:

- Add future example





v0.3
======
Add myrigs to api calls
Add list my rigs example

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

mrrapi-0.3.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file mrrapi-0.3.1.tar.gz.

File metadata

  • Download URL: mrrapi-0.3.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mrrapi-0.3.1.tar.gz
Algorithm Hash digest
SHA256 98e6d9f11f7aff649f222d91457dcad5b0fdd75bc059507e064d6c9df1857058
MD5 0cd617a15fff3708f5c616271520b9de
BLAKE2b-256 b0acf69f1c471bad8f3d732921f1aaa83974e24f939c047149119320fc3c4c6e

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