oceanex_py3
oceanex_py3 is a Python SDK to query, trade and manage funds on Oceanex.
Installation
pip3 install oceanex_py3
Source Code
Documentation
See /docs for detailed APIs.
Examples
Get all trading pairs supported on Oceanex.
from oceanex_py3 import public
markets = public.get_markets()
for each in markets:
print(each.identifier, each.left, each.right)
# etcusdt ETC USDT
# ltcusdt LTC USDT
# dashusdt DASH USDT
Get current buy/sell orderbook status on the market.
from oceanex_py3 import public
asks, bids, timestamp = public.get_orderbook('btcusdt', 10) # limit result to 10 orders.
Post an order to the market on behalf of user.
from oceanex_py3 import personal
test_config = {
'uid': 'IDxxxxx',
'apikey_id': 'Kxxxxxxx',
'private_key_location': '/xxx/xxx/xxx/key.pem'
}
p = personal.Personal(
test_config['uid'],
test_config['apikey_id'],
test_config['private_key_location']
)
order = p.new_sell_limit_order('vet', 'btc', 600000, 10000)
Cancel all the orders.
from oceanex_py3 import personal
test_config = {
'uid': 'IDxxxxx',
'apikey_id': 'Kxxxxxxx',
'private_key_location': '/xxx/xxx/xxx/key.pem'
}
p = personal.Personal(
test_config['uid'],
test_config['apikey_id'],
test_config['private_key_location']
)
p.cancel_all_orders()
Metadata
Release files for oceanex-py3 1.2.2
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 |
|---|---|---|---|---|
| oceanex_py3-1.2.2.tar.gz | 7.0 kB | Without provenance | Details for oceanex_py3-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oceanex_py3-1.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for oceanex_py3-1.2.2-py2.py3-none-any.whl |
Total release size: 14.4 kB
Release files / oceanex_py3-1.2.2.tar.gz
| Download URL | oceanex_py3-1.2.2.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2fb81caaa16c2612c9126e2a3d23ca2734e2b26aca1c95226f187d2b59f9d8f
|
|
BLAKE2b-256 checksum How to use checksums |
69ab8ae3affadfed640d78a2aad80f2318dc21b46fa5138bf1e04ccc43882a7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.6
|
Release files / oceanex_py3-1.2.2-py2.py3-none-any.whl
| Download URL | oceanex_py3-1.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3e8e7d2532e3fc86120d5eef2f6da580d545f78993ff5526b5b3653ed08246da
|
|
BLAKE2b-256 checksum How to use checksums |
a137ddf7332c286b3ccdcd3c20ce3154b1a3edc63b87142d4a998668739fe2eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.6
|
Security for oceanex-py3 1.2.2
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.