Documentation Index
Fetch the complete documentation index at: https://docs.gte.xyz/llms.txt
Use this file to discover all available pages before exploring further.
A Python SDK for interacting with GTE.
Installation
You can install the package directly from GitHub:
pip install git+https://github.com/liquid-labs-inc/gte-python-sdk#egg=gte-py
Or include it in your requirements.txt:
git+https://github.com/liquid-labs-inc/gte-python-sdk#egg=gte-py
Quick Start
import asyncio
from eth_utils.address import to_checksum_address
from gte_py.clients import GTEClient
from gte_py.configs import TESTNET_CONFIG
from gte_py.models import OrderSide
async def main():
# Load the default testnet configuration for GTE
config = TESTNET_CONFIG
# Initialize the GTEClient with your wallet's private key
async with GTEClient(config=config, wallet_private_key=PRIVATE_KEY) as client:
# Fetch market information
market = await client.info.get_market(MARKET_ADDRESS)
# Place a market order
order = await client.execution.place_market_order(
market, OrderSide.BUY, size=0.01,
amount_is_raw=False, slippage=0.05, gas=50 * 10 ** 6
)
print(f"Market order placed: {order}")
if __name__ == "__main__":
asyncio.run(main())
Features
The GTE Python SDK provides:
- Market Information: Query market data and orderbook information
- Trade Execution: Place and manage orders on GTE’s CLOB
- Token Operations: Interact with GTE’s launchpad and AMM
- Real-time Data: WebSocket support for live market updates
- Event Monitoring: Listen to blockchain events
Documentation
For complete documentation, examples, and API reference, visit the GTE Python SDK repository.