Skip to main content

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.

Metadata

Release files for shrim-py 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shrim-py 0.0.2
File Size Uploaded
shrim-py-0.0.2.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shrim-py 0.0.2
File Interpreter ABI Platform
shrim_py-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 32.5 kB

Release files / shrim-py-0.0.2.tar.gz

Download URL shrim-py-0.0.2.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
000a5d5dcdf7eb47b20786d97daa628dfc41867bb7bfe3a43fa8979400171509
BLAKE2b-256 checksum
How to use checksums
345334aa590b7380a942005df3913b4c297265badacf24154a38896a7c46d895
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / shrim_py-0.0.2-py3-none-any.whl

Download URL shrim_py-0.0.2-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
688adcfd202a0b0a4d4db16efd1a5a58efbbe422b5f29b8b32fc8f733421e9bd
BLAKE2b-256 checksum
How to use checksums
e81ee93da3ee8a39f90dca293ea316e3aec30c6b73aae9e249521a023355c92d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page