Skip to content

Instantly share code, notes, and snippets.

@gallynaut
Created May 23, 2022 16:38
Show Gist options
  • Save gallynaut/1414b538090e29fe598ef4186445de0d to your computer and use it in GitHub Desktop.
Save gallynaut/1414b538090e29fe598ef4186445de0d to your computer and use it in GitHub Desktop.
xStep Task Example
{
"name": "xStep",
"tasks": [
{
"xstepPriceTask": {
"stepJob": {
"jobs": [
{
"tasks": [
{
"httpTask": { "url": "https://ftx.com/api/markets/step/usd" }
},
{ "jsonParseTask": { "path": "$.result.price" } }
]
},
{
"tasks": [
{
"httpTask": {
"url": "https://api.gateio.ws/api/v4/spot/tickers?currency_pair=STEP_USDT"
}
},
{
"medianTask": {
"tasks": [
{ "jsonParseTask": { "path": "$[0].lowest_ask" } },
{ "jsonParseTask": { "path": "$[0].highest_bid" } },
{ "jsonParseTask": { "path": "$[0].last" } }
]
}
}
]
}
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment