Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ripio/ripio-client-python
https://github.com/ripio/ripio-client-python
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/ripio/ripio-client-python
- Owner: ripio
- License: apache-2.0
- Created: 2022-12-14T19:09:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-23T22:09:14.000Z (over 1 year ago)
- Last Synced: 2024-12-09T01:48:33.414Z (26 days ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ripio Client for Python
### ALPHA SOFTWAREThis is a lightweight library that works as a client to [Ripio](https://www.ripio.com) Services
## Installation
```bash
pip install ripio-client
```## Usage example
```python
from ripio.trade.client import Client# API key is required for user data endpoints
client = Client(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)```