Quick Start
Install Nectar SDK
curl -LO https://github.com/WASD3Rplay/nectar-sdk-examples/releases/download/1.6.1/wasd3rplay-nectar-sdk-1.6.1.tgz
npm install ./wasd3rplay-nectar-sdk-1.6.2.tgzSet environment variables
NODE_USER_WALLET_SECRET="0x20112f224a7b1ff95b4b5ee0413517ce0b06a15598e4176bab348048540f1432"
NODE_NECTAR_API_KEY="warjaIFl.5j4TFpCVNX3jOMMGf8lH5WfffIVfktvY"Please note that the values mentioned above are considered public information and should be exclusively used in a testing environment. Utilizing them in a production environment could result in unforeseen drawbacks.
Please ensure the secure storage of the provided values, and we strongly recommend avoiding unnecessary sharing.
List up market pairs
import { Nectar } from "@wasd3rplay/nectar-sdk";
async function main() {
const nectar = new Nectar();
const markets = await nectar.getAllMarkets();
console.info("Market List: ", markets);
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});Create Orders
Last updated