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

# JavaScript SDK Quick Start

> Get started with the Aries JavaScript/Node.js SDK in minutes

## Prerequisites

* Node.js 14 or higher
* npm or yarn package manager
* Aries API credentials (client ID and client secret)

## Installation

Install the Aries JavaScript SDK using npm or yarn:

```bash theme={null}
npm install @aries-exchange/sdk
# or
yarn add @aries-exchange/sdk
```

## Initialize the Client

```javascript theme={null}
import { AriesClient } from '@aries-exchange/sdk';

// Initialize the client with your credentials
const client = new AriesClient({
  clientId: 'your_client_id',
  clientSecret: 'your_client_secret'
});
```

## Basic Operations

### Get Account Information

```javascript theme={null}
// Retrieve user account details
const accounts = await client.accounts.getUserAccounts();
console.log(accounts);
```

### Place a Market Order

```javascript theme={null}
// Place a simple market order
const order = await client.orders.placeOrder({
  symbol: 'AAPL',
  quantity: 10,
  side: 'buy',
  orderType: 'market'
});
console.log(`Order placed:`, order);
```

### Search for Securities

```javascript theme={null}
// Search for a security
const results = await client.marketData.search('AAPL');
console.log(results);
```

## TypeScript Support

The SDK includes full TypeScript definitions:

```typescript theme={null}
import { AriesClient, Order } from '@aries-exchange/sdk';

const client = new AriesClient({
  clientId: 'your_client_id',
  clientSecret: 'your_client_secret'
});

const order: Order = await client.orders.placeOrder({
  symbol: 'AAPL',
  quantity: 10,
  side: 'buy',
  orderType: 'market'
});
```

## Next Steps

Now that you have the basics working, explore the SDK's capabilities:

* **[Portfolio](/sdks/javascript/portfolio)** - Manage portfolios and holdings
* **[Markets](/sdks/javascript/markets)** - Access market data and quotes
* **[Orders](/sdks/javascript/orders)** - Advanced order management
* **[Account Management](/sdks/javascript/accounts)** - Detailed account operations

## Additional Resources

* [Full JavaScript SDK Documentation](/sdks/javascript/overview)
* [API Reference](/api-reference)
* [GitHub Repository](#)
