Skip to main content

A Python library for interacting with Phoenix, a limit order book spot exchange on the Solana blockchain.

Project description

phoenixpy

Installation

pip install phoenix-trade

Usage

Here is an example of how to get the L2 book for the SOL/USDC market.

from phoenix.market import Market
from phoenix.client import PhoenixClient
import asyncio
from solders.pubkey import Pubkey


async def main():
    client = PhoenixClient()
    solusdc_market_pubkey = Pubkey.from_string(
        "4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg"
    )
    print(await client.get_l2_book(solusdc_market_pubkey))
    await client.close()


asyncio.run(main())

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

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

phoenix-trade-0.1.4.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

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

phoenix_trade-0.1.4-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

Details for the file phoenix-trade-0.1.4.tar.gz.

File metadata

  • Download URL: phoenix-trade-0.1.4.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for phoenix-trade-0.1.4.tar.gz
Algorithm Hash digest
SHA256 56257d55c89b86f8530ce97610e17680c4be50e4fb3267cd09a4f283a4fe8050
MD5 fc78054a5bb6f4726feeca966886f110
BLAKE2b-256 53c0c6f698245fe7c32300fd59161ec743116d52dffc96db4af2510e289d9d65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phoenix_trade-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 54.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for phoenix_trade-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aa6f5f9e9dec5e8e5274422dd0e9108a873d2b3080f7c1e231b1b7ab2e235c39
MD5 9dcd7320ec09eda31ddeac140e970a9d
BLAKE2b-256 d47b0fd79c349f8a0b79481231fdbca3aef8f5c5489baf04ed1a34496d2dc9be

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