Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

ripio_client-0.0.3-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page