Metadata-Version: 2.1
Name: phoenix-trade
Version: 0.1.2
Summary: A Python library for interacting with Phoenix, a limit order book spot exchange on the Solana blockchain.
Author-email: Ellipsis Labs <contributors@ellipsislabs.xyz>
Project-URL: Homepage, https://github.com/Ellipsis-Labs/phoenixpy/
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# phoenixpy

## Installation

```bash
pip install phoenix-trade
```

## Usage

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

```python
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.
