KongSwap API Documentation and Candid Definitions

•
2 min read
•

On this page

KongSwap API Documentation and Candid Definitions

Building on KongSwap? This guide will help you find all the API documentation and candid definitions you need to integrate with our decentralized exchange.

KongSwap API Documentation

Web2 API Documentation

For traditional REST API integration, our comprehensive API documentation is available at:

šŸ”— api.kongswap.io/docs

This includes:

  • RESTful endpoints for market data
  • Historical data endpoints

Canister Candid Definitions

What are Candid Definitions?

Candid is the Interface Definition Language (IDL) for the Internet Computer. It describes the public interface of canisters, making it easy to interact with them programmatically.

Where to Find KongSwap's Candid Files

1. Internet Computer Dashboard

View our main canister's candid interface directly on the IC Dashboard:

šŸ”— dashboard.internetcomputer.org/canister/2ipq2-uqaaa-aaaar-qailq-cai

This provides:

  • Interactive candid interface viewer
  • Method signatures and types
  • Direct testing capabilities

2. GitHub Repository

All candid definitions are available in our GitHub repositories:

šŸ”— github.com/KongSwap

You can find the .did files in the repository structure:

kong/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ kong_backend/
│   │   └── kong_backend.did
│   ā”œā”€ā”€ kong_data/
│   │   └── kong_data.did
│   └── ...

Summary

Whether you're building a trading bot, analytics dashboard, or custom integration, these resources provide everything you need to get started with KongSwap's APIs:

For questions or support, join our Telegram or reach out on Twitter/X.

Tags

Share this article

Help others discover this content by sharing it

Comments

Stay Updated

Get the latest KongSwap updates, tutorials, and insights delivered to your inbox.