Ripio Client for Python
Project description
Ripio Client for Python
ALPHA SOFTWARE
This is a lightweight library that works as a client to Ripio Services
Installation
pip install ripio-client
Usage example
from ripio.trade.client import Client
# API key is required for user data endpoints
client = Client(api_key='<api_key>')
# Get balance information
print(client.balance())
# Create a market order
params = {
'pair': 'BTC_USDC',
'side': 'buy',
'amount': 0.01,
'type': 'market'
}
response = client.create_order(**params)
print(response)
# Create a limit buy order
params = {
'pair': 'BTC_USDC',
'side': 'buy',
'amount': 0.0002,
'type': 'limit',
'price': 27471.65
}
response = client.create_order(**params)
print(response)
# Create a limit sell order
params = {
'pair': 'BTC_USDC',
'side': 'sell',
'amount': 0.0002,
'type': 'limit',
'price': 27470
}
response = client.create_order(**params)
print(response)
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
ripio_client-0.0.3.tar.gz
(8.5 kB
view details)
Built Distribution
File details
Details for the file ripio_client-0.0.3.tar.gz
.
File metadata
- Download URL: ripio_client-0.0.3.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1da318aebb4eaa23116d063ec5f4b2535575a6e93f54eda4c0bbe432d62d592c
|
|
MD5 |
c69c12e963db1155f2835c5e918d3950
|
|
BLAKE2b-256 |
cc34cf5606315f5dbf254ea42a78577883f74f2abfa69740387f02a72f90ddb4
|
File details
Details for the file ripio_client-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: ripio_client-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
becca85e045576c729511b224f8f13b693e8d10bb4b2762997d25475327e74a1
|
|
MD5 |
7a026a3c5d368bdf85be56658e6e48fd
|
|
BLAKE2b-256 |
6b9e26d060d02bd47bed689c70bc3da434ee4ec1f9b35728222de83ee58dcc15
|