Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,5 @@ dmypy.json
.pyre/
test_state.json
.vscode/

myenv
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ Context manager:
from bxsolana import provider

async with provider.http() as api:
print(await api.get_orderbook(market="ETHUSDT"))
print(await api.get_raydium_pools())

async with provider.ws() as api:
async for update in api.get_orderbooks_stream(market="ETHUSDT"):
async for update in api.get_prices_stream(projects=[api.Project.P_RAYDIUM], tokens=["So11111111111111111111111111111111111111112"]):
print(update)
```

Expand All @@ -74,7 +74,7 @@ p = provider.grpc()
api = await bxsolana.trader_api(p)

try:
await api.get_orderbook(market="ETHUSDT")
await api.get_jupiter_prices(tokens=["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"])
finally:
await p.close()
```
Expand Down
11 changes: 0 additions & 11 deletions bxsolana/examples/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .request_utils import do_requests
from .transaction_request_utils import do_transaction_requests
from .stream_utils import do_stream
from .constants import (
PUBLIC_KEY,
Expand All @@ -8,21 +7,11 @@
ORDER_ID,
MARKET,
)
from .order_utils import (
cancel_order,
cancel_all_orders,
replace_order_by_client_order_id,
)
from .order_lifecycle import order_lifecycle

__all__ = [
"do_requests",
"do_transaction_requests",
"do_stream",
"cancel_all_orders",
"cancel_order",
"replace_order_by_client_order_id",
"order_lifecycle",
"PUBLIC_KEY",
"USDC_WALLET",
"OPEN_ORDERS",
Expand Down
97 changes: 0 additions & 97 deletions bxsolana/examples/order_lifecycle.py

This file was deleted.

Loading