Simulator Limit Order (POST)

Simulator Limit Order

This API is used to create multi-chain limit buy and limit sell tasks in simulator

URL

Header: X-API-KEY

(Please do not disclose your API Key to anyone. If you are at risk of losing it, please refresh it.)

Notes

  1. X-API-KEY can be obtained in your "Dashboard", go to check: Dashboard

  2. In the paging type interface, use the next field in the return value as the query parameter for the next page (if next == null, it means that paging has ended)

Request Example

{
	"chain": "solana",
	"pair": "BAS6Cv5qG2FnEQ8W1wXKGfU2r6MFAiSdgGgkUM7NsStE",
	"walletId": "",
	"settings": [
		{
			"enabled": true,
			"tradeType": "buy",
			"triggerPriceUsd": "0.022348210260",
			"triggerDirection": "down",
			"currencyAmountUI": "0.1",
			"priorityFee": "",
			"expireDelta": 360000000,
			"gasFeeDelta": 5,
			"maxFeePerGas": 100,
			"maxSlippage": 0.1
		},
		{
			"enabled": true,
			"tradeType": "sell",
			"triggerPriceUsd": "1.5",
			"triggerDirection": "up",
			"priorityFee": "0.00005",
			"currencyAmountUI": 1,
			"expireDelta": 360000000,
			"gasFeeDelta": 5,
			"maxFeePerGas": 100,
			"maxSlippage": 0.1
		}
	]
}

Request Response

{
	"err": false,
	"res": {
		"ids": [
			"lus8bfug0040i2",
			"lus8bfug004166"
		]
	},
	"docs": "https://dbotx.com/docs"
}

Request Parameters

  • chain: Blockchain (solana/ethereum/base/bsc/tron)

  • pair: Address of the token or pair to be bought/sold

  • walletId: The simulator's walletId defaults to ""

  • enabled (buy): Buy task enable status

  • tradeType: Trade type, with values of buy and sell

  • triggerPriceUsd: Price (USD) that triggers buy / sell

  • triggerDirection: "down" means buy/sell below the trigger price, "up" means buy/sell above the trigger price

  • currencyAmountUI: When trade type is buy, fill in the buy amount (ETH/SOL/BNB/TRX), when tradeType is sell, fill in the sell ratio (0-1)

  • priorityFee: Priority Fee (SOL), valid for Solana, empty string means use auto priority fee

  • expireDelta: Task duration, max 864000000 (milliseconds)

  • gasFeeDelta: Extra added gas (Gwei), valid for EVM

  • maxFeePerGas: When the base gas exceeds this value, no transaction will execute (Gwei), valid for EVM chains

  • maxSlippage: MAX slippage tolerance (0.00-1.00)

  • enabled (sell): Sell task enabled status

Last updated