Tasks
Last updated
Last updated
POST /api/v1/tasks/ HTTP/1.1
Host: localhost:50000
Accept: */*
GET /api/v1/tasks/ HTTP/1.1
Host: localhost:50000
Accept: */*
{
"groups": [
{
"id": "text",
"meta": {
"active": true
},
"module": "solswap",
"private": true,
"tasks": [
{
"dtf": {
"amount": "text",
"data": "text",
"delay": "text",
"fee": "text",
"input": "text",
"mode": "text",
"preset": "text",
"timestamp": "text",
"tip": "text",
"wallet": "text"
},
"group_id": "text",
"id": 1,
"module": "solswap",
"polymarket": {
"amount": "text",
"data": "text",
"mode": "text",
"order_type": "text",
"preset": "text",
"slippage": "text",
"strategy": "text",
"target": "text",
"wallet": "text"
},
"solswap": {
"amount": "text",
"data": "text",
"direction": "text",
"fee": "text",
"input": "text",
"mode": "text",
"platforms": "text",
"preset": "text",
"slippage": "text",
"stable": "text",
"strategy": "text",
"tip": "text",
"wallet": "text"
}
}
]
}
]
}PUT /api/v1/tasks/{task_id} HTTP/1.1
Host: localhost:50000
Accept: */*
POST /api/v1/tasks/{task_id} HTTP/1.1
Host: localhost:50000
Accept: */*
PUT /api/v1/tasks/ HTTP/1.1
Host: localhost:50000
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"data": [
1
],
"id": "text",
"module": "text"
}{
"id": "text"
}DELETE /api/v1/tasks/{task_id} HTTP/1.1
Host: localhost:50000
Accept: */*
PATCH /api/v1/tasks/{task_id} HTTP/1.1
Host: localhost:50000
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"new_name": "text"
}POST /api/v1/feed HTTP/1.1
Host: localhost:50000
Content-Type: application/json
Accept: */*
Content-Length: 114
{
"ctx": {
"amount": "text",
"fee": 1,
"group_id": "text",
"slippage": 1,
"task_id": 1,
"tip": 1
},
"slot": 1,
"transaction": "text"
}