> For the complete documentation index, see [llms.txt](https://docs.algodex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.algodex.com/developer-tools/algodex-sdk-v2.md).

# Algodex SDK v2

### Overview

The Algodex Software Development Kit (SDK) 2.0 is for developers who wish to programmatically interact with Algodex. The SDK enables developers to integrate Algodex's exchange logic into their own DApp&#x73;**.** A robust description of the SDK can be found [**here**](https://docs-sdk.algodex.com), and the Github and setup instructions can be found [**here**](https://github.com/algodex/algodex-sdk).&#x20;

### Tutorials

1. [**Placing Orders**](/developer-tools/algodex-sdk-v2/tutorial-placing-orders.md)&#x20;
2. [**Order book**](/developer-tools/algodex-sdk-v2/tutorial-order-book.md)
3. [**Closing Orders**](/developer-tools/algodex-sdk-v2/tutorial-closing-orders.md)

### Setup

#### NPM

`npm install @algodex/algodex-sdk`

#### Yarn

yarn add @algodex/algodex-sdk

### Examples

#### \[WIP] Example Testnet Configuration \[config.json]

```
{
  "config": {
    "algod": {
      "uri": "https://testnet-algorand.api.purestake.io/ps2",
      "token": "<TOKEN>"
    },
    "indexer": {
      "uri": "https://algoindexer.testnet.algoexplorerapi.io",
      "token": ""
    },
    "explorer": {
      "uri": "https://indexer.testnet.algoexplorerapi.io",
      "port": ""
    },
    "dexd": {
      "uri": "https://api-testnet-public.algodex.com/algodex-backend",
      "token": ""
    }
  }
}
```

#### Example Mainnet Configuration \[config.json]

```
{
  "config": {
    "algod": {
      "uri": "https://mainnet-algorand.api.purestake.io/ps2",
      "token": "<TOKEN>"
    },
    "indexer": {
      "uri": "https://algoindexer.algoexplorerapi.io",
      "token": ""
    },
    "explorer": {
      "uri": "https://indexer.algoexplorerapi.io",
      "port": ""
    },
    "dexd": {
      "uri": "https://app.algodex.com/algodex-backend",
      "token": ""
    }
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.algodex.com/developer-tools/algodex-sdk-v2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
