Developers

Trade on Grvt from your code

Start with one prompt in your coding agent, or follow the quickstart yourself.

Quickstart · 5 min

Paste it into Claude Code, Cursor or Codex. It points your agent at the notes for coding agents and llms.txt.

Show prompt
Help me integrate with the Grvt exchange API.

Read these first, in order:
- {origin}/AGENTS.md (how the docs are laid out and the rules to follow)
- {origin}/llms.txt (an index of every page, each linked as Markdown; fetch the pages you need)

Official SDKs (each has a guide at {origin}/sdks/<language>.md):
- Python: pip install grvt. Guide: {origin}/sdks/python.md
- TypeScript: npm install github:gravity-technologies/grvt-sdk-typescript (public GitHub repository; pin a commit). Guide: {origin}/sdks/typescript.md
- Go: go get github.com/gravity-technologies/grvt-sdk-go. Guide: {origin}/sdks/go.md
- Rust: cargo add grvt. Guide: {origin}/sdks/rust.md
C++ signing core and tested reference examples: {origin}/sdks/cpp.md. C++ applications own networking, sessions, streams and recovery.
{use}

Then ask me what I want to build (a trading bot, market data, or account tools).
Target {environment} (chain ID {chainId}). Read API keys and signing keys from environment variables, never from code.
{executionGuidance}
Do not send requests without the user asking you to.
Never retry an order or transfer automatically. Keep the client_order_id the SDK sets (or set your own unique one when sending raw HTTP) so I can look orders up.

What do you want to do?

Coming from grvt-pysdk? Migration guide

SDKs

Preview API · Python 3.11+
Python →
pip install grvt
Preview API · Node.js 24+ npm install github:gravity-technologies/grvt-sdk-typescript
Preview API · Go 1.27.4+
Go →
go get github.com/gravity-technologies/grvt-sdk-go
Preview API · Rust 1.88+
Rust →
cargo add grvt
Preview API · C++20+ Signing core and executable examples for applications that own networking and state.
No SDK
Any language
HTTP and WebSocket JSON-RPC. Environments · Signing

Reference

All 66 calls and 18 streams · Error codes · Enums · Types

esc

↑ ↓ move↵ open⇧↵ open .mdTry an error code like 2002

Keyboard shortcuts

⌘ K
Search the docs
/
Search
l
Next code language (Python → TypeScript → Go → Rust → curl → WebSocket)
j / k
Next / previous page
t
Light / dark theme
?
This help
Esc
Close dialogs and drawers