Skip to content

Moon-developer/Valr-simple-client

Repository files navigation

VALR Simple Python Client

PyPI - Python Version PyPI - Wheel GitHub tag (latest by date)
PyPI - Status
A Simple Python Library to integrate with VALR API.

Cloning source

Get this package by:

$ git clone https://github.com/Moon-developer/Valr-simple-client.git

Activate the virtual environment with venv before coding, testing & packaging:

$ cd .
$ python3 -m venv .dev_env
$ source .dev_env/bin/activate
$ python3 -m pip install -r requirements.txt

Required ENVIRONMENT variables:

VALR_KEY='valr_key'
VALR_SECRET='valr_secret'

Example Usage, See example.py file:

$ python3 example.py

Installing Package

To use this as a package in your project simply run:

$ pip install valr-simple-client

Then import:

from valr import Valr

# Initiate a client
valr_client = Valr(key='YOUR_VALR_KEY', secret='YOUR_VALR_SECRET')

# Access the endpoint your want to use.
valr_client.public.server_time()