Limit Orders

Limit Orders allow you to set precise buy or sell conditions, enabling automated trades at your desired price levels. Secure better market entry or exit points and maintain control over your strategy,

Limit Orders

const afSdk = new Aftermath("MAINNET");
await afSdk.init(); // initialize provider

const dca = afSdk.Dca();
const limitOrders = afSdk.LimitOrders();
const userData = afSdk.UserData();

Constants

LimitOrders.constants = {
	gasAmount: BigInt(50_000_000),
};

Order Management

Authorization

To use the Aftermath Limit Orders service, you'll need to create a user account by signing a personal message in two cases:

  1. When creating your first order

  2. When fetching your active orders

This signature serves two important purposes:

  • It provides essential data that helps ensure the service works correctly

  • It verifies authorization identity

Fetch Orders

Create Order

Cancel Order

Last updated