OVEX-py
OVEX Python API.
Installation
pip install ovex-py
How to use it
Most functions should have useful help text, but essentially:
API object creation
from ovex_python.client import Client
c = Client(api_key_id='key_id', base_url='', timeout=0)
Where optional parameters can be passed as follows:
| Parameter | Description | Default |
|---|---|---|
| api_key_id | Your API key created on the OVEX website | Required for authenticated calls |
| base_url | The API host URL | https://www.ovex.io/api/v2 |
| timeout | The maximum time to wait for requests | 10 (s) |
API calls
Get accounts for all currencies
c.get_accounts()
Returns: list of dictionaries containing balances for all currencies
Get currency info
c.get_currency_info('btc')
Returns: dictionary containing information about the currency requested
Request a quote
o.get_quote_rfq(to_amount=1, market='btczar', side='buy')
Returns: dictionary containing quote information including a token
Known Issues
- Not all error handling has been handled
- Not all endpoints work as expected, sometimes parameters get ignored
- Exceptions have not been handled and might not even output a warning
Acknowledgements
This repo was largely based on the work done on pyluno, thanks to Grant Stephens https://github.com/grantstephens/pyluno
To Do
- Add in a rate limiter
- Add in processing layer to make results more user-friendly
Contribute
- Fork it
- Contribute
- Give feedback
- Start again
Metadata
Release files for ovex-py 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ovex_py-0.1.0.tar.gz | 7.5 kB | Without provenance | Details for ovex_py-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ovex_py-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ovex_py-0.1.0-py3-none-any.whl |
Total release size: 15.2 kB
Release files / ovex_py-0.1.0.tar.gz
| Download URL | ovex_py-0.1.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4931ffe7284551f15f89c736354be6fd9f8ba840eeabaafa2b1f2a625da7b29f
|
|
BLAKE2b-256 checksum How to use checksums |
01afa9895fdb44abe43172fbf8a7a47b068d8225b660f6dc1355699d0a4e9c8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / ovex_py-0.1.0-py3-none-any.whl
| Download URL | ovex_py-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00368fda42d2289516d94ee6ebd2e7a507625c7e3c2f759e09709ed0a31ebb82
|
|
BLAKE2b-256 checksum How to use checksums |
62755e58bd04371c064110241c5e5a709aa80c13e2d3b5bb76113f59d8adb81e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for ovex-py 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.