Skip to main content

The Better Shrimpy Python Client for Dev and User APIs

Project description

Shrim.py, the Better Shrimpy Python API

This API connect to Shrimpy Developers API in a more flexible way than the official API.

It also covers a Shrimpy Users API that wasn't available until now.

Signature headers and hashing are fully covered, no hassle.

Benefits Over the Official Shrimpy Python Lib

This Shrimpy library has the following features:

  • Connect to the User API in order to drive your Shrimpy account and portfolios
  • Tested (yes, Shrimpy official is totally untested ¯_(ツ)_/¯)
  • Access all endpoints explicitely as documented. eg: client.get("/list_exchanges") instead of searching for corresponding method when they exist
  • Access latest endpoints with the current lib version, not need to upgrade and get the corresponding method

Installation

You probably want a virtualenv first, then:

pip install shrim-py

Usage

This API allows you to connect to the Shrimpy Developers API or the Shrimpy User API.

from shrimpy import ShrimpyDevClient

client = ShrimpyDevClient("myapikey", "myapisecret")
client.get("/list_exchanges")

if you want to connect to the Shrimpy User API instead just import and use ShrimpyUserClient instead:

from shrimpy import ShrimpyUserClient

client = ShrimpyUserClient("myapikey", "myapisecret")
client.get("/binance/ticker")

Shrimpy Client Methods

when creating a client you can then call the following methods: get, post and delete.

Retrieve a Resource

client.get(endpoint)

Create a Resource

client.post(endpoint)

Delete a Resource

client.delete(endpoint)

There's no other method used in Shrimpy. However if you needed to manually call an endpoint with a different method you could shortcut using client.call(method, endpoint).

List of Endpoints

The full list of endpoints for the User API for accessing public resources, account, portfolios and data types is available on the official doc: https://www.shrimpy.io/docs

With the Developers API endpoint you can manage public, trading, historical, user info, management and analytics data: https://developers.shrimpy.io/docs

Running tests

With your virtualenv activated simply run:

make test

It's a handy shortcut for launching unittest.

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

shrim-py-0.0.2.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shrim_py-0.0.2-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file shrim-py-0.0.2.tar.gz.

File metadata

  • Download URL: shrim-py-0.0.2.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for shrim-py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 000a5d5dcdf7eb47b20786d97daa628dfc41867bb7bfe3a43fa8979400171509
MD5 58ce63085b7cef380571ed56e84afa83
BLAKE2b-256 345334aa590b7380a942005df3913b4c297265badacf24154a38896a7c46d895

See more details on using hashes here.

File details

Details for the file shrim_py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: shrim_py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for shrim_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 688adcfd202a0b0a4d4db16efd1a5a58efbbe422b5f29b8b32fc8f733421e9bd
MD5 0e3312d19f8d0af7aed47ecf2dfae80c
BLAKE2b-256 e81ee93da3ee8a39f90dca293ea316e3aec30c6b73aae9e249521a023355c92d

See more details on using hashes here.

Supported by

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