ANTPOOLs application programming interface (API) allows users to access and control their accounts using custom written software.
Project description
Solidity ANTPOOL
This API is based on the documentation provided by ANTPOOL (https://www.antpool.com/userApiGuide).
ANTPOOL's application programming interface (API) allows users to access and control their accounts using custom written software.
Request limits
Do not make more than 600 request per 10 minutes or we will ban your IP address.
API authentication
You need to provide 3 parameters to authenticate a request:
- key - API key
- secret - API secret
- user_id - Id Antpool
Install
pip3 install solidity-antpool
Use Case
from AntPool import antpool
user_id = '#####'
key = '#########'
secret = '######'
def example():
if __name__ == '__main__':
data = antpool.AntPool(user_id, key, secret)
print(data.get_overview())
if __name__ == '__main__':
example()
Response
{
"code": 0,
"message": "ok",
"data":
{
"hsLast10m": "127603936523714",
"hsLast1d": "102498704834436",
"invalidWorkerNum": 0,
"totalAmount": "0.00480411",
"totalWorkerNum": 1,
"unpaidAmount": "0.00480411",
"yesterdayAmount": "0.00037884",
"inactiveWorkerNum": 0,
"hsLast1h": "114466490529000",
"userId": "#####",
"activeWorkerNum": 1
}
}
Methods
-
get_hash_user_rate (Hash Rate)
-
get_sub_account_list (Sub-account List)
-
get_workers (Workers' Hash Rate)
-
get_worker_list (Worker List)
-
get_account (Account balance)
-
get_overview (Overview for sub-account)
-
get_overview_list_by_email (Overview for sub-account according to the mailbox)
-
get_pool_stats (Pool Stats)
-
get_overview_list_by_email (Overview for subaccount according to the mailbox)
-
get_user_hash_rate_chart (When the userWorkerId query parameter is not void)
-
get_payment_history (Payment History Summary)
-
get_coin_calculator (Mining Calculator)
-
change_coin (Change coin)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solidity-antpool-0.1.1.tar.gz.
File metadata
- Download URL: solidity-antpool-0.1.1.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
217d09ee9f37aea82a7b150a6f27915ceed6097c2c3e8471a395800193bfebf9
|
|
| MD5 |
d7c22dc7f4ac59446970b9c012aceb8a
|
|
| BLAKE2b-256 |
0e0d628c91b673647863e5b4847136dcb64d90f3041a4d55dfb423c74d23ed1a
|
File details
Details for the file solidity_antpool-0.1.1-py3-none-any.whl.
File metadata
- Download URL: solidity_antpool-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1842756c1754aac6adb1123e5de29692e3518913188762d71d4b4d2aba79028b
|
|
| MD5 |
e94a71b029cd395014660b5eb2a3fa81
|
|
| BLAKE2b-256 |
ef967fe424929069b5207d480cd088777ac542c5e1b1a4597b94689a37413d83
|