cancelOrder

Provides a method to cancel a created buy or sell order:

import { Nectar, OrderType, UserOrder } from "@wasd3rplay/nectar-sdk";
import { Wallet } from "ethers";

const nectar = new Nectar();

const buyOrderID = await nectar.cancelOrder({
    orderId: "on5dl42e9zwbr3ym"
});

Properties

  • orderId

    • The order ID received upon order creation

Result

This method does not return anything, but it throws an error if the request fails.