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.3.0.tar.gz (54.1 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.3.0-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for storkpubutils-0.3.0.tar.gz
Algorithm Hash digest
SHA256 13d10a8fcb6ca2f250d331aafdb30e899391d6d3e9bced016d5b25a237f42899
MD5 41cbc9dd6ef6bc109d509da8bf978361
BLAKE2b-256 fca1c0be2382e85c1831f6c34c145adc6d6dad9886d1485af63536d0e6c619ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: storkpubutils-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 52.5 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e973f3a68f6d3af3d2724b301a198c2823eb954f0b31a7b1ea5ad00f35ee1c8
MD5 4ab18f7a8bd6b4d9f4ea60c43fc79874
BLAKE2b-256 df0765d9a59b5fe0165fba9fc7102b9f0b213718a30ae34ac84d3dd064065e2e

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