Integrate ATM

The ATM Library is a powerful AI agent for trading. This guide provides a step-by-step process to integrate and utilize the library in your project.

Getting Started

Installation

To use the ATM library, install it using your preferred package manager:

npm install atmai
# or
yarn add atmai

Setup

API Configuration

To initialize the library, you need your API key, secret, and API URL. Obtain these from your ATM account.

1. API Key and Secret:

• Login to your ATM account.

• Navigate to the API section to generate or retrieve your credentials.

2. Whitelisted API URL:

• Use the provided URL for your whitelisted environment.

Initialization

Create a new file (e.g., atmConfig.ts) and configure the library:

import { ATM } from 'atmai';

// Replace these placeholders with your actual credentials
const API_KEY = '{your-api-key-here}';
const API_SECRET = '{your-api-secret-here}';
const API_URL = 'https://api.atmai.fun';

export const atm = new ATM({
  apiKey: API_KEY,
  apiSecret: API_SECRET,
  apiUrl: API_URL,
});

Usage

1. Fetch Portfolio Summary

Retrieve a portfolio summary for the last 24 hours:

2. Trend Following Strategy

Uses AI-assisted trading decisions based:

Last updated