LogoLogo
  • Introduction
  • Get started
  • Trading Account
  • Signing
  • REST API
    • Account
      • Get Account Info
      • Get Positions
      • Get ABR payments
    • Market
      • Get Markets
      • Get Assets
      • Get Orderbook
    • Trade
      • Create Order
      • Cancel Order
      • Query order
      • List historical orders
      • List active orders
      • Trade list
    • Time
  • Web Sockets
    • Authentication
    • Connectivity check
    • Subscription
    • Public topics
      • trade
      • marketInfo
      • orderBook
      • accountCreated
      • kline
    • Private topics
      • conditionalOrder
      • balance
      • order
      • fill
  • Glossary
Powered by GitBook
On this page
  • Welcome to ZKX API
  • Environments

Introduction

NextGet started

Last updated 10 months ago

Welcome to ZKX API

ZKX API allows you to trade on the ZKX platform. ZKX API provides REST API and WebSocket interfaces.

REST API has public and private endpoints. To request private endpoints, you should have an active and sign the data with a private key. Public endpoints are free to call without signing.

Web Socket API is organized around topics; for some, you must authenticate a web socket connection before subscribing.

Environments

Production - Mainnet

REST API

WS API

Web UI

Sandbox - Goerli Testnet

REST API

WS API

Web UI Web UI on sandbox is protected by basic auth. If you want to get access, please email us at .

Be aware that you need to use different accounts for sandbox and production.

As accompanying materials, you could use:

  1. Reference SDK - Typescript client

Starknet smart contract:

Starknet test USDC

L2 USDC Faucet Web UI L2 USDC Faucet POST URL

Swagger UI

trading account
https://api.zkx.fi/
wss://api.zkx.fi/ws
https://app.zkx.fi/trade
https://api.sandbox.zkx.fi/
wss://api.sandbox.zkx.fi/ws
https://app.sandbox.zkx.fi/trade
integrations@zkx.fi
https://sepolia.starkscan.co/contract/0x04a07737209f5b974f07f3d6ac01fa9edbb19e394af9271b2674beab700d9893
https://sepolia.voyager.online/contract/0x02f37c3e00e75ee4135b32bb60c37e0599af264076376a618f138d2f9929ac74
https://starkway-faucet.sandbox.zkx.fi/
https://zkxaccount-api-sepolia.sandbox.zkx.fi/faucet
https://api.sandbox.zkx.fi/api
106KB
typescript-client-main (3).zip
archive