Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DERIVE_WALLETYesYour Ethereum wallet address
DERIVE_ENVIRONMENTNoAPI Environment (mainnet or testnet)mainnet
DERIVE_PRIVATE_KEYNoPrivate key for transaction signing (optional, needed for trading)

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
get_currencies

Get all available currencies (underlying assets) on the platform.

get_instruments

Get all active instruments for a specified currency and type. Returns detailed information about tradeable assets including fees, constraints, and Greeks.

get_ticker

Get real-time ticker data for a single instrument (bid/ask, last price, 24h volume, Greeks for options).

get_tickers

Get ticker information for multiple instruments at once. More efficient than get_ticker when querying many instruments.

get_orderbook

Get real-time orderbook data for a specific instrument with bid/ask levels, depth, and spread.

get_trade_history

Get tick-by-tick trade history with detailed trade information (price, size, buyer/seller, timestamp). Supports filtering and pagination.

get_funding_rate_history

Get historical funding rate data for perpetual contracts with timestamps and rates.

get_spot_feed_history

Get historical spot price feed data (index prices) with timestamps.

get_option_settlement_history

Get historical option settlement data (expiry, settlement prices, PnL).

get_liquidation_history

Get liquidation events history across the platform.

get_account

Get account details including subaccounts, rate limits, fee structure, and account status. Requires authentication.

get_subaccounts

Get all subaccounts for a wallet with labels and creation timestamps. Requires authentication.

get_balance

Get account balance across all subaccounts including collaterals and open order margins. Requires authentication.

get_positions

Get all open positions for a subaccount including unrealized PnL, mark price, leverage, and liquidation price. Requires authentication.

get_collaterals

Get collateral information for a subaccount including amounts, prices, and margin contributions. Requires authentication.

get_margin

Get detailed margin information for a subaccount including maintenance margin, initial margin, and margin ratio. Requires authentication.

get_open_orders

Get all open orders for a subaccount with order status and details. Requires authentication.

get_orders_history

Get order history for a subaccount with filled, cancelled, and rejected orders. Requires authentication.

place_order

Place a new order (limit or market). Requires authentication and private key for signing.

cancel_order

Cancel an open order by order ID. Requires authentication.

cancel_all_orders

Cancel all open orders for a subaccount. Optionally filter by currency or instrument. Requires authentication.

replace_order

Replace an existing order (cancel old and place new) in one atomic operation. Requires authentication.

get_my_trades

Get personal trade history with detailed trade information (side, price, fees, PnL). Requires authentication.

get_funding_history

Get funding payments history (paid and received). Requires authentication.

get_deposit_history

Get deposit history with transaction hashes and statuses. Requires authentication.

get_withdrawal_history

Get withdrawal history with transaction hashes and statuses. Requires authentication.

send_rfq

Send a Request For Quote to get custom pricing from market makers. Requires authentication.

get_rfqs

Get active RFQs for a subaccount with quotes received. Requires authentication.

execute_quote

Execute a quoted trade at the quoted price. Requires authentication.

get_liquidation_price

Get current liquidation price for an open position. Requires authentication.

margin_watch

Get margin watch information showing accounts approaching liquidation. Requires authentication.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/solenyaresearch0000/derive-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server