fixedfloat-py-0.1.5
توضیحات
Python module for FixedFloat API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fixedfloat-py-0.1.5 |
| نام | fixedfloat-py |
| نسخه کتابخانه | 0.1.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | mpp1337 |
| ایمیل نویسنده | maxx_uae@protonmail.com |
| آدرس صفحه اصلی | https://github.com/mpp1337/fixedfloat-py |
| آدرس اینترنتی | https://pypi.org/project/fixedfloat-py/ |
| مجوز | MIT |
# Python module for FixedFloat.com API
Implements the following API methods:
- Get currencies: `Getting a list of all currencies that are available on FixedFloat.com`;
- Get price: `Information about a currency pair with a set amount of funds`;
- Get order: `Receiving information about the order`;
- Set emergency: `Emergency Action Choice`;
- Create order: `Creating exchange orders`;
## How to use:
```python3
from fixedfloat.fixedfloat import FixedFloat
api = FixedFloat("API_PUBLIC","API_SECRET")
# Get all currencies:
print(api.get_currencies())
# Create exchange order:
test_btc_address = "test_btc_address_here"
order = api.create_order("ETH", "BTC", 0.5, test_btc_address, "fixed")
print(order)
# Get order:
print(api.get_order("ORDER_ID", "TOKEN")) # you can get TOKEN after creating an order
# Get pair exchange price:
print(api.get_price("ETH", 0.5, "BTC", "fixed"))
# Setting emergency:
print(api.set_emergency("ORDER_ID", "TOKEN", "EXCHANGE"))
```
## Reference:
https://fixedfloat.com/api
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
نحوه نصب
نصب پکیج whl fixedfloat-py-0.1.5:
pip install fixedfloat-py-0.1.5.whl
نصب پکیج tar.gz fixedfloat-py-0.1.5:
pip install fixedfloat-py-0.1.5.tar.gz