FixedFloatApi


NameFixedFloatApi JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/Jobians/FixedFloatApi-Python
SummaryPython wrapper for interacting with the FixedFloat API to exchange cryptocurrencies.
upload_time2023-05-03 17:13:46
maintainer
docs_urlNone
authorJobiansTechie
requires_python
licenseMIT
keywords fixedfloat api fixedfloat python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Installation

```bash
pip install FixedFloatApi
```

## Usage

```python
from fixedfloatapi import FixedFloatApi

# create a new API client
api = FixedFloatApi(key='YOUR_API_KEY', secret='YOUR_API_SECRET')

# Get a list of supported currencies
ccies = api.ccies()
print(ccies)

# Get the current price for an exchange
price = api.price({
    'fromCcy': 'BTC',
    'toCcy': 'ETH',
    'amount': 1.0,
    'direction': 'from',
    'type': 'fixed' # or 'float'
})
print(price)

# Create a new exchange order
order = api.create({
    'fromCcy': 'BTC',
    'toCcy': 'ETH',
    'amount': 1.0,
    'direction': 'from',
    'type': 'fixed', # or 'float'
    'toAddress': '0x123...'
})
print(order)

# Place an order for an existing exchange
order_status = api.order({
    'id': '12345',
    'token': 'TESTTOKENvRB90NOtr397kHY3PJ1VRy2p29HHaN7'
})
print(order_status)

# Request emergency assistance for an exchange
emergency = api.emergency({
    'id': '12345',
    'token': 'TESTTOKENvRB90NOtr397kHY3PJ1VRy2p29HHaN7',
    'choice': 'EXCHANGE'
})
print(emergency)

# set email address for order notifications
set_email = api.setEmail({
    'id': 'TESTID',
    'token': 'TESTTOKENvRB90NOtr397kHY3PJ1VRy2p29HHaN7',
    'email': 'notifyme@gmail.com',
})
print(set_email)

# get a QR code for a trade
qr_code = api.qr({
    'id': 'TESTID',
    'token': 'TESTTOKENvRB90NOtr397kHY3PJ1VRy2p29HHaN7',
})
print(qr_code)

# Make a custom API request
method = 'some_method'
data = {'param1': 'value1', 'param2': 'value2'}
response = api.custom_request(method, data)
print(response)
```

For more information, see the [API documentation](https://fixedfloat.com/api)


## Support

If you find my work helpful, you can support me by donating:

[![Donate](https://img.shields.io/badge/Donate-Crypto-0070BA.svg)](https://cwallet.com/t/TE6A6KMV)
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Jobians/FixedFloatApi-Python",
    "name": "FixedFloatApi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "FixedFloat,Api,FixedFloat Python",
    "author": "JobiansTechie",
    "author_email": "jobianstechie@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/fb/3c/809c9f2e6da5d0798b7e4c2f3cb7af8c4a9744b258c2d9eeee6e2dc8a891/FixedFloatApi-1.0.3.tar.gz",
    "platform": null,
    "description": "## Installation\n\n```bash\npip install FixedFloatApi\n```\n\n## Usage\n\n```python\nfrom fixedfloatapi import FixedFloatApi\n\n# create a new API client\napi = FixedFloatApi(key='YOUR_API_KEY', secret='YOUR_API_SECRET')\n\n# Get a list of supported currencies\nccies = api.ccies()\nprint(ccies)\n\n# Get the current price for an exchange\nprice = api.price({\n    'fromCcy': 'BTC',\n    'toCcy': 'ETH',\n    'amount': 1.0,\n    'direction': 'from',\n    'type': 'fixed' # or 'float'\n})\nprint(price)\n\n# Create a new exchange order\norder = api.create({\n    'fromCcy': 'BTC',\n    'toCcy': 'ETH',\n    'amount': 1.0,\n    'direction': 'from',\n    'type': 'fixed', # or 'float'\n    'toAddress': '0x123...'\n})\nprint(order)\n\n# Place an order for an existing exchange\norder_status = api.order({\n    'id': '12345',\n    'token': 'TESTTOKENvRB90NOtr397kHY3PJ1VRy2p29HHaN7'\n})\nprint(order_status)\n\n# Request emergency assistance for an exchange\nemergency = api.emergency({\n    'id': '12345',\n    'token': 'TESTTOKENvRB90NOtr397kHY3PJ1VRy2p29HHaN7',\n    'choice': 'EXCHANGE'\n})\nprint(emergency)\n\n# set email address for order notifications\nset_email = api.setEmail({\n    'id': 'TESTID',\n    'token': 'TESTTOKENvRB90NOtr397kHY3PJ1VRy2p29HHaN7',\n    'email': 'notifyme@gmail.com',\n})\nprint(set_email)\n\n# get a QR code for a trade\nqr_code = api.qr({\n    'id': 'TESTID',\n    'token': 'TESTTOKENvRB90NOtr397kHY3PJ1VRy2p29HHaN7',\n})\nprint(qr_code)\n\n# Make a custom API request\nmethod = 'some_method'\ndata = {'param1': 'value1', 'param2': 'value2'}\nresponse = api.custom_request(method, data)\nprint(response)\n```\n\nFor more information, see the [API documentation](https://fixedfloat.com/api)\n\n\n## Support\n\nIf you find my work helpful, you can support me by donating:\n\n[![Donate](https://img.shields.io/badge/Donate-Crypto-0070BA.svg)](https://cwallet.com/t/TE6A6KMV)",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python wrapper for interacting with the FixedFloat API to exchange cryptocurrencies.",
    "version": "1.0.3",
    "project_urls": {
        "Homepage": "https://github.com/Jobians/FixedFloatApi-Python"
    },
    "split_keywords": [
        "fixedfloat",
        "api",
        "fixedfloat python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fb3c809c9f2e6da5d0798b7e4c2f3cb7af8c4a9744b258c2d9eeee6e2dc8a891",
                "md5": "f1c0dc63ed23fa4b5bc60123fe483bae",
                "sha256": "de972be379334a0b876ac19553a09fe48e708e93631aad552e82f1b5c09cdb2e"
            },
            "downloads": -1,
            "filename": "FixedFloatApi-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "f1c0dc63ed23fa4b5bc60123fe483bae",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3560,
            "upload_time": "2023-05-03T17:13:46",
            "upload_time_iso_8601": "2023-05-03T17:13:46.055561Z",
            "url": "https://files.pythonhosted.org/packages/fb/3c/809c9f2e6da5d0798b7e4c2f3cb7af8c4a9744b258c2d9eeee6e2dc8a891/FixedFloatApi-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-03 17:13:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Jobians",
    "github_project": "FixedFloatApi-Python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "fixedfloatapi"
}
        
Elapsed time: 0.06726s