AI Position
Get AI Position
GET
/signals
The Signals API provides access to trading signals based on specified criteria.
Example on DeFi Lens: https://defilens.ai/ai-positions
Headers
Name
Type
Description
x-partner-key
string
Your API Key
Ex: xxxx
Body
Name
Type
Description
interval
string
Specifies the time interval for the signals. Possible values include:
1d: 1 day
1h: 1 hour
15m: 15 minutes
5m: 5 minutes
status
string
Filters the signals by their status. Possible enum values:
Open
Close
offset
integer (optional)
The starting point for fetching the signals is useful for pagination. The default value is 0.
size
integer (optional)
The number of signals to retrieve in the response. The default value is 10.
Example request
curl -X 'GET' \
'https://api.defilens.ai/signals?interval=1d&status=open&listingId=bitcoin' \
-H 'accept: */*'
Response
{
"data": [
{
"symbol": "SHIB",
"image": "image.png",
"name": "Shiba Inu",
"id": "70b744d7c2174d0baae5bd38a7c7da38",
"action_side": "sell",
"entry_price": 0.00001808,
"interval": "1h",
"start_time": "2024-07-22T04:26:36.738Z",
"status": "open",
"token_id": "shiba-inu"
},
{
"symbol": "SHIB",
"image": "image.png",
"name": "Shiba Inu",
"id": "801d3f2a9ca44f00b5fedca228b743dd",
"action_side": "sell",
"entry_price": 0.00001808,
"interval": "1h",
"start_time": "2024-07-22T04:26:36.738Z",
"status": "open",
"token_id": "shiba-inu"
},
{
"symbol": "XRP",
"image": "image.png",
"name": "XRP",
"id": "7e98eed0ca484094af6431b436b3f2a3",
"action_side": "sell",
"entry_price": 0.5912,
"interval": "1h",
"start_time": "2024-07-22T06:29:54.262Z",
"status": "open",
"token_id": "ripple",
}
]}
Data return
Name
Type
Description
action_side
string
The specific action taken during the backtesting process at a given point in time
Ex: buy
, sell
, neutral
Last updated