> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nefariouslabs.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Get started with Nefarious Labs in minutes

## Prerequisites

Before you begin, make sure you have:

* An API key from the Nefarious Labs dashboard
* Node.js 18+ or any HTTP client

## Installation

<CodeGroup>
  ```bash npm theme={null}
  npm install @nefarious/sdk
  ```

  ```bash yarn theme={null}
  yarn add @nefarious/sdk
  ```

  ```bash pnpm theme={null}
  pnpm add @nefarious/sdk
  ```
</CodeGroup>

## Quick Example

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { NefariousClient } from '@nefarious/sdk';

  const client = new NefariousClient({
    apiKey: process.env.NEFARIOUS_API_KEY
  });

  // Get DeFi positions for a wallet
  const positions = await client.positions.get({
    wallet: '7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU',
    protocols: ['marginfi', 'drift']
  });

  console.log(positions);
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://api.nefariouslabs.dev/positions',
      headers={'X-API-Key': 'your-api-key'},
      params={'wallet': '7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU'}
  )

  print(response.json())
  ```
</CodeGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="DeFi Positions" icon="wallet" href="/services/defi-positions">
    Learn about position tracking
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference/introduction">
    Explore all endpoints
  </Card>
</CardGroup>
