Skip to main content
Example code snippets to query the exchange module on the chain.

Using gRPC

Fetch parameters such as the default spot and derivatives fees/trading rewards

Fetch the fee discount schedules

Fetch the fee discounts associated with an injective address

Fetch the details regarding the trading reward campaign, such as the total reward points

Fetch the trading rewards points for an injective address

Fetch the pending trading rewards points for injective addresses

Fetch the current positions, such as subaccountId, marketId, and position

Fetch the subaccount trade nonce

Last modified on March 30, 2026