Skip to main content

A python based SDK developed for interacting with Ostium, a leveraged trading application for trading currencies, commodities, indices, crypto and more.

Project description

Ostium Python SDK

A python based SDK developed for interacting with Ostium v1 Trading Platform (https://ostium.app/)

Ostium is a decentralized perpetuals exchange on Arbitrum (Ethereum L2) with a focus on providing a seamless experience for traders for trading currencies, commodities, indices, crypto and more.

This SDK is designed to be used by developers who want to build applications on top of Ostium and automate their trading strategies.

Pip Install

The SDK can be installed via pip:

pip install ostium-python-sdk

Requirements

Developed using:

  python=3.8

Example Usage Script

Read Block Number

To run the example:

python examples/example-read-block-number.py

See example-read-block-number.py for an example of how to use the SDK.

Read Positions

To run the example:

python examples/example-read-positions.py

See example-read-positions.py for an example of how to use the SDK.

Get Feed Prices

To open a trade you need the latest feed price.

See this example script on how to get the latest feed prices.

python examples/example-get-prices.py

See example-get-prices.py for an example of how to use the SDK.

Get Balance of an Address

See this example script on how to get the latest feed prices.

python examples/example-get-balance.py

See example-get-balance.py for an example of how to use the SDK.

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

ostium_python_sdk-0.1.4.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

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

ostium_python_sdk-0.1.4-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file ostium_python_sdk-0.1.4.tar.gz.

File metadata

  • Download URL: ostium_python_sdk-0.1.4.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for ostium_python_sdk-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e50f31115fdcc7726b64caff1124c238c529ce67339753d4cc5c142429af39e2
MD5 f4e96abbe1882f4235c32749a3ff6259
BLAKE2b-256 9195306b5aaeceedf5522ce1affc523f9fb6b2aa388c79d95ce5f0a1b04c9dfa

See more details on using hashes here.

File details

Details for the file ostium_python_sdk-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ostium_python_sdk-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f566828dd4e411bde5b71ae3a884aab2e8d79cded4ba5ea094cc301ffb82c1ef
MD5 db0127eed3371088cff41798a096eb69
BLAKE2b-256 32f0b4ffb723b2935acdd3fdba7d11a8c814f234d5a9947bf96930527318729d

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