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.4.2.tar.gz (55.6 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.4.2-py3-none-any.whl (54.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for storkpubutils-0.4.2.tar.gz
Algorithm Hash digest
SHA256 d9d87aa6b1f5718a5cf08628389fbbe0b8a68ef034204d02f7d89a16342e6633
MD5 f15f0d10ca470102c7d51de01c10d93f
BLAKE2b-256 6a4f174ee1a1731d8787b1f481e3121323e91f3425c7ca31bbb3b7fd9dee1404

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for storkpubutils-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0978e1340254b90722ac3073fcc37c43d74cb96c73512f4749fb1b09a403b503
MD5 c753c4b50566e01d3af1dec351c2c604
BLAKE2b-256 f43e6541cbb5261fb3f32d6b0dd94ba45efc4d54cb509940f89dd3458876bd17

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