# 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**](https://docs.algodex.com/developer-tools/algodex-sdk-v2/tutorial-placing-orders)&#x20;
2. [**Order book**](https://docs.algodex.com/developer-tools/algodex-sdk-v2/tutorial-order-book)
3. [**Closing Orders**](https://docs.algodex.com/developer-tools/algodex-sdk-v2/tutorial-closing-orders)

### 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": ""
    }
  }
}
```
