Page cover

Lunar API

How to set up the Lunar API

The API is used by your custom scripts to directly send requests to Lunar to buy/sell tokens

1. Setup

  • You can find examples of the code (in python and golang) here

  • Use this in your custom scripts

2. Task Creation

  • You need to create a DeFi Extension task and turn it on for Lunar to receive your API requests

The API is very basic, if high demand we will release a more advanced version that will support

  • Live editing from API

  • Task Creation from API

  • & more

Last updated