Skip to content

ripio/ripio-client-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages