Skip to main content

Stork publisher utilities

Project description

storkpubutils

Usage

This package contains commonly used stork publisher utilities.

sign_prices uses starkware_helpers to generate starkware and evm signatures for the given asset and external price.

send takes the current asset and price data, and forwards it to the stork websocket.

update_prices takes price data from providers and stores it inside of a prices object, while also removing stale data.

quantize_price takes the given price and quantizes it before multiplying it to avoid float inaccuracies

starkex_sign and evm_sign take given assets and prices, and sign them with the relevant information

evm_pack is equivalent to StarkEx's get_price_msg without hashing

Notes

Only folders with __init__.py in it them will be included when built.

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

storkpubutils-0.0.2.tar.gz (53.5 kB view details)

Uploaded Source

Built Distribution

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

storkpubutils-0.0.2-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

Details for the file storkpubutils-0.0.2.tar.gz.

File metadata

  • Download URL: storkpubutils-0.0.2.tar.gz
  • Upload date:
  • Size: 53.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for storkpubutils-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d4ee322515ec9a861f8758c04ef19997203a4ce5895624d78b6e31a44511da34
MD5 ec2dd3f0aa15480883a517f306efaad3
BLAKE2b-256 782ebcd7760681a2e88497bcb11c4a28443f35ec703c1e566fc15c576509a6ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: storkpubutils-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 52.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for storkpubutils-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f7f1d0a0624019c2f2f58c6d67e0c6287b870b8a4b6cc1b51982aa02226f3e53
MD5 be94d9d46ba664a125b7a7b33f6db1a0
BLAKE2b-256 500329af615f14d3e26ff6908538dc1ad255f82da120bf3f9ee0686d4d2e5c1e

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