1909 lines
48 KiB
JSON
1909 lines
48 KiB
JSON
{
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": "-- Grafana --",
|
|
"enable": true,
|
|
"hide": true,
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
"name": "Annotations & Alerts",
|
|
"type": "dashboard"
|
|
}
|
|
]
|
|
},
|
|
"editable": true,
|
|
"gnetId": null,
|
|
"graphTooltip": 0,
|
|
"id": 1,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"cacheTimeout": null,
|
|
"colorBackground": false,
|
|
"colorValue": false,
|
|
"colors": [
|
|
"#299c46",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"#d44a3a"
|
|
],
|
|
"datasource": "postgres",
|
|
"decimals": 3,
|
|
"format": "currencyUSD",
|
|
"gauge": {
|
|
"maxValue": 100,
|
|
"minValue": 0,
|
|
"show": false,
|
|
"thresholdLabels": false,
|
|
"thresholdMarkers": true
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 31,
|
|
"interval": null,
|
|
"links": [],
|
|
"mappingType": 1,
|
|
"mappingTypes": [
|
|
{
|
|
"name": "value to text",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "range to text",
|
|
"value": 2
|
|
}
|
|
],
|
|
"maxDataPoints": 100,
|
|
"nullPointMode": "connected",
|
|
"nullText": null,
|
|
"options": {},
|
|
"postfix": "",
|
|
"postfixFontSize": "50%",
|
|
"prefix": "",
|
|
"prefixFontSize": "50%",
|
|
"rangeMaps": [
|
|
{
|
|
"from": "null",
|
|
"text": "N/A",
|
|
"to": "null"
|
|
}
|
|
],
|
|
"sparkline": {
|
|
"fillColor": "rgba(31, 118, 189, 0.18)",
|
|
"full": false,
|
|
"lineColor": "rgb(31, 120, 193)",
|
|
"show": false,
|
|
"ymax": null,
|
|
"ymin": null
|
|
},
|
|
"tableColumn": "",
|
|
"targets": [
|
|
{
|
|
"format": "time_series",
|
|
"group": [],
|
|
"hide": true,
|
|
"metricColumn": "none",
|
|
"rawQuery": true,
|
|
"rawSql": "SELECT\n date AS \"time\",\n ((\n SELECT price_usd\n FROM bitcoinprice\n ORDER BY date desc\n LIMIT 1\n ) * (balance.total * (\n SELECT current_price\n FROM ticker\n WHERE trade_pair = 'BTC-WOW'\n ORDER BY date desc\n LIMIT 1\n ))) as \"WOW Balance\"\nFROM balance\nWHERE\n $__timeFilter(date)\nAND\n currency = 'WOW'\nORDER BY 1,2",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"current_price"
|
|
],
|
|
"type": "column"
|
|
}
|
|
]
|
|
],
|
|
"table": "ticker",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"format": "time_series",
|
|
"group": [],
|
|
"hide": true,
|
|
"metricColumn": "none",
|
|
"rawQuery": true,
|
|
"rawSql": "SELECT\n date AS \"time\",\n ((\n SELECT price_usd\n FROM bitcoinprice\n ORDER BY date desc\n LIMIT 1\n ) * balance.total) as \"BTC Balance\"\nFROM balance\nWHERE\n $__timeFilter(date)\nAND\n currency = 'BTC'\nORDER BY 1,2",
|
|
"refId": "B",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"total"
|
|
],
|
|
"type": "column"
|
|
}
|
|
]
|
|
],
|
|
"table": "balance",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"format": "time_series",
|
|
"group": [],
|
|
"metricColumn": "none",
|
|
"rawQuery": true,
|
|
"rawSql": "WITH btc_price as (\n SELECT price_usd\n FROM bitcoinprice\n ORDER BY date desc\n LIMIT 1\n),\nwow_balance as (\n SELECT total\n FROM balance\n WHERE $__timeFilter(date) AND currency = 'WOW'\n ORDER BY date desc\n LIMIT 1\n),\nbtc_balance as (\n SELECT total\n FROM balance\n WHERE $__timeFilter(date) AND currency = 'BTC'\n ORDER BY date desc\n LIMIT 1\n),\nwow_price AS (\n SELECT current_price\n FROM ticker\n WHERE trade_pair = 'BTC-WOW'\n ORDER BY date desc\n LIMIT 1\n)\n\nSELECT\n date AS \"time\",\n (btc_price.price_usd * (wow_balance.total * wow_price.current_price)) + (btc_price.price_usd * btc_balance.total) as \"Total Balance\"\nFROM balance, btc_price, wow_balance, btc_balance, wow_price\nWHERE\n $__timeFilter(date)\nORDER BY 1,2",
|
|
"refId": "C",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"total"
|
|
],
|
|
"type": "column"
|
|
}
|
|
]
|
|
],
|
|
"table": "balance",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": "",
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Balance USD",
|
|
"type": "singlestat",
|
|
"valueFontSize": "150%",
|
|
"valueMaps": [
|
|
{
|
|
"op": "=",
|
|
"text": "N/A",
|
|
"value": "null"
|
|
}
|
|
],
|
|
"valueName": "current"
|
|
},
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "postgres",
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 10,
|
|
"w": 20,
|
|
"x": 4,
|
|
"y": 0
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 33,
|
|
"legend": {
|
|
"avg": false,
|
|
"current": false,
|
|
"max": false,
|
|
"min": false,
|
|
"show": false,
|
|
"total": false,
|
|
"values": false
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"nullPointMode": "null",
|
|
"options": {
|
|
"dataLinks": []
|
|
},
|
|
"percentage": false,
|
|
"pointradius": 2,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "usd",
|
|
"color": "#1F60C4"
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"format": "time_series",
|
|
"group": [],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n date AS \"time\",\n usd\nFROM portfolio\nWHERE\n $__timeFilter(date)\nORDER BY 1",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"usd"
|
|
],
|
|
"type": "column"
|
|
}
|
|
]
|
|
],
|
|
"table": "portfolio",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": [],
|
|
"timeFrom": null,
|
|
"timeRegions": [],
|
|
"timeShift": null,
|
|
"title": "Portfolio USD",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"sort": 0,
|
|
"value_type": "individual"
|
|
},
|
|
"type": "graph",
|
|
"xaxis": {
|
|
"buckets": null,
|
|
"mode": "time",
|
|
"name": null,
|
|
"show": true,
|
|
"values": []
|
|
},
|
|
"yaxes": [
|
|
{
|
|
"format": "currencyUSD",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": false
|
|
}
|
|
],
|
|
"yaxis": {
|
|
"align": false,
|
|
"alignLevel": null
|
|
}
|
|
},
|
|
{
|
|
"cacheTimeout": null,
|
|
"colorBackground": false,
|
|
"colorPrefix": false,
|
|
"colorValue": false,
|
|
"colors": [
|
|
"#299c46",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"#d44a3a"
|
|
],
|
|
"datasource": "postgres",
|
|
"format": "none",
|
|
"gauge": {
|
|
"maxValue": 100,
|
|
"minValue": 0,
|
|
"show": false,
|
|
"thresholdLabels": false,
|
|
"thresholdMarkers": true
|
|
},
|
|
"gridPos": {
|
|
"h": 3,
|
|
"w": 4,
|
|
"x": 0,
|
|
"y": 4
|
|
},
|
|
"id": 24,
|
|
"interval": null,
|
|
"links": [],
|
|
"mappingType": 1,
|
|
"mappingTypes": [
|
|
{
|
|
"name": "value to text",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "range to text",
|
|
"value": 2
|
|
}
|
|
],
|
|
"maxDataPoints": 100,
|
|
"nullPointMode": "connected",
|
|
"nullText": null,
|
|
"options": {},
|
|
"pluginVersion": "6.5.0",
|
|
"postfix": "",
|
|
"postfixFontSize": "50%",
|
|
"prefix": "",
|
|
"prefixFontSize": "50%",
|
|
"rangeMaps": [
|
|
{
|
|
"from": "null",
|
|
"text": "N/A",
|
|
"to": "null"
|
|
}
|
|
],
|
|
"repeat": null,
|
|
"repeatDirection": "h",
|
|
"sparkline": {
|
|
"fillColor": "rgba(31, 118, 189, 0.18)",
|
|
"full": false,
|
|
"lineColor": "rgb(31, 120, 193)",
|
|
"show": false,
|
|
"ymax": null,
|
|
"ymin": null
|
|
},
|
|
"tableColumn": "",
|
|
"targets": [
|
|
{
|
|
"format": "time_series",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"none"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval),\n count(price) AS \"price\"\nFROM \"order\"\nWHERE\n active = 'false' AND\n cancelled = 'false'\nGROUP BY 1\nORDER BY 1",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"price"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"count"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"price"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "\"order\"",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"datatype": "bool",
|
|
"name": "",
|
|
"params": [
|
|
"active",
|
|
"=",
|
|
"'false'"
|
|
],
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"datatype": "bool",
|
|
"name": "",
|
|
"params": [
|
|
"cancelled",
|
|
"=",
|
|
"'false'"
|
|
],
|
|
"type": "expression"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": "",
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Completed Orders",
|
|
"type": "singlestat",
|
|
"valueFontSize": "80%",
|
|
"valueMaps": [
|
|
{
|
|
"op": "=",
|
|
"text": "N/A",
|
|
"value": "null"
|
|
}
|
|
],
|
|
"valueName": "total"
|
|
},
|
|
{
|
|
"cacheTimeout": null,
|
|
"colorBackground": false,
|
|
"colorPrefix": false,
|
|
"colorValue": false,
|
|
"colors": [
|
|
"#299c46",
|
|
"rgba(237, 129, 40, 0.89)",
|
|
"#d44a3a"
|
|
],
|
|
"datasource": "postgres",
|
|
"format": "none",
|
|
"gauge": {
|
|
"maxValue": 100,
|
|
"minValue": 0,
|
|
"show": false,
|
|
"thresholdLabels": false,
|
|
"thresholdMarkers": true
|
|
},
|
|
"gridPos": {
|
|
"h": 3,
|
|
"w": 4,
|
|
"x": 0,
|
|
"y": 7
|
|
},
|
|
"id": 25,
|
|
"interval": null,
|
|
"links": [],
|
|
"mappingType": 1,
|
|
"mappingTypes": [
|
|
{
|
|
"name": "value to text",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "range to text",
|
|
"value": 2
|
|
}
|
|
],
|
|
"maxDataPoints": 100,
|
|
"nullPointMode": "connected",
|
|
"nullText": null,
|
|
"options": {},
|
|
"pluginVersion": "6.5.0",
|
|
"postfix": "",
|
|
"postfixFontSize": "50%",
|
|
"prefix": "",
|
|
"prefixFontSize": "50%",
|
|
"rangeMaps": [
|
|
{
|
|
"from": "null",
|
|
"text": "N/A",
|
|
"to": "null"
|
|
}
|
|
],
|
|
"repeatDirection": "h",
|
|
"sparkline": {
|
|
"fillColor": "rgba(31, 118, 189, 0.18)",
|
|
"full": false,
|
|
"lineColor": "rgb(31, 120, 193)",
|
|
"show": false,
|
|
"ymax": null,
|
|
"ymin": null
|
|
},
|
|
"tableColumn": "",
|
|
"targets": [
|
|
{
|
|
"format": "time_series",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"none"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval),\n count(id) AS \"price\"\nFROM \"order\"\nWHERE\n active = 'true' AND\n cancelled = 'false'\nGROUP BY 1\nORDER BY 1",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"id"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"count"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"price"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "\"order\"",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"datatype": "bool",
|
|
"name": "",
|
|
"params": [
|
|
"active",
|
|
"=",
|
|
"'true'"
|
|
],
|
|
"type": "expression"
|
|
},
|
|
{
|
|
"datatype": "bool",
|
|
"name": "",
|
|
"params": [
|
|
"cancelled",
|
|
"=",
|
|
"'false'"
|
|
],
|
|
"type": "expression"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": "",
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Active Orders",
|
|
"type": "singlestat",
|
|
"valueFontSize": "80%",
|
|
"valueMaps": [
|
|
{
|
|
"op": "=",
|
|
"text": "N/A",
|
|
"value": "null"
|
|
}
|
|
],
|
|
"valueName": "total"
|
|
},
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "postgres",
|
|
"decimals": 8,
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 10
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 12,
|
|
"legend": {
|
|
"alignAsTable": true,
|
|
"avg": true,
|
|
"current": true,
|
|
"max": true,
|
|
"min": true,
|
|
"rightSide": false,
|
|
"show": false,
|
|
"total": false,
|
|
"values": true
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"maxPerRow": 2,
|
|
"nullPointMode": "connected",
|
|
"options": {
|
|
"dataLinks": []
|
|
},
|
|
"percentage": false,
|
|
"pointradius": 2,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"repeat": "currency",
|
|
"repeatDirection": "h",
|
|
"scopedVars": {
|
|
"currency": {
|
|
"selected": false,
|
|
"text": "WOW",
|
|
"value": "WOW"
|
|
}
|
|
},
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "total",
|
|
"color": "#FF9830"
|
|
},
|
|
{
|
|
"alias": "available",
|
|
"color": "#1F60C4"
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": true,
|
|
"targets": [
|
|
{
|
|
"format": "time_series",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"NULL"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n avg(total) AS \"total\"\nFROM balance\nWHERE\n $__timeFilter(date) AND\n currency = 'WOW'\nGROUP BY 1\nORDER BY 1",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"total"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"total"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "balance",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
},
|
|
{
|
|
"datatype": "varchar",
|
|
"name": "",
|
|
"params": [
|
|
"currency",
|
|
"=",
|
|
"'WOW'"
|
|
],
|
|
"type": "expression"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"format": "time_series",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"NULL"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n avg(available) AS \"available\"\nFROM balance\nWHERE\n $__timeFilter(date) AND\n currency = 'WOW'\nGROUP BY 1\nORDER BY 1",
|
|
"refId": "B",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"available"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"available"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "balance",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
},
|
|
{
|
|
"datatype": "varchar",
|
|
"name": "",
|
|
"params": [
|
|
"currency",
|
|
"=",
|
|
"'WOW'"
|
|
],
|
|
"type": "expression"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": [],
|
|
"timeFrom": null,
|
|
"timeRegions": [],
|
|
"timeShift": null,
|
|
"title": "$currency Balance",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"sort": 0,
|
|
"value_type": "individual"
|
|
},
|
|
"type": "graph",
|
|
"xaxis": {
|
|
"buckets": null,
|
|
"mode": "time",
|
|
"name": null,
|
|
"show": true,
|
|
"values": []
|
|
},
|
|
"yaxes": [
|
|
{
|
|
"decimals": null,
|
|
"format": "none",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": "0",
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": false
|
|
}
|
|
],
|
|
"yaxis": {
|
|
"align": false,
|
|
"alignLevel": null
|
|
}
|
|
},
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "postgres",
|
|
"decimals": 8,
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 10
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 29,
|
|
"legend": {
|
|
"alignAsTable": true,
|
|
"avg": true,
|
|
"current": true,
|
|
"max": true,
|
|
"min": true,
|
|
"rightSide": false,
|
|
"show": false,
|
|
"total": false,
|
|
"values": true
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"maxPerRow": 2,
|
|
"nullPointMode": "connected",
|
|
"options": {
|
|
"dataLinks": []
|
|
},
|
|
"percentage": false,
|
|
"pointradius": 2,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"repeat": null,
|
|
"repeatDirection": "h",
|
|
"repeatIteration": 1677520544598,
|
|
"repeatPanelId": 12,
|
|
"scopedVars": {
|
|
"currency": {
|
|
"selected": false,
|
|
"text": "BTC",
|
|
"value": "BTC"
|
|
}
|
|
},
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "total",
|
|
"color": "#FF9830"
|
|
},
|
|
{
|
|
"alias": "available",
|
|
"color": "#1F60C4"
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"format": "time_series",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"NULL"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n avg(total) AS \"total\"\nFROM balance\nWHERE\n $__timeFilter(date) AND\n currency = 'BTC'\nGROUP BY 1\nORDER BY 1",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"total"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"total"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "balance",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
},
|
|
{
|
|
"datatype": "varchar",
|
|
"name": "",
|
|
"params": [
|
|
"currency",
|
|
"=",
|
|
"'BTC'"
|
|
],
|
|
"type": "expression"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"format": "time_series",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"NULL"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n avg(available) AS \"available\"\nFROM balance\nWHERE\n $__timeFilter(date) AND\n currency = 'BTC'\nGROUP BY 1\nORDER BY 1",
|
|
"refId": "B",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"available"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"available"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "balance",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
},
|
|
{
|
|
"datatype": "varchar",
|
|
"name": "",
|
|
"params": [
|
|
"currency",
|
|
"=",
|
|
"'BTC'"
|
|
],
|
|
"type": "expression"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": [],
|
|
"timeFrom": null,
|
|
"timeRegions": [],
|
|
"timeShift": null,
|
|
"title": "$currency Balance",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"sort": 0,
|
|
"value_type": "individual"
|
|
},
|
|
"type": "graph",
|
|
"xaxis": {
|
|
"buckets": null,
|
|
"mode": "time",
|
|
"name": null,
|
|
"show": true,
|
|
"values": []
|
|
},
|
|
"yaxes": [
|
|
{
|
|
"decimals": null,
|
|
"format": "none",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": "0",
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": false
|
|
}
|
|
],
|
|
"yaxis": {
|
|
"align": false,
|
|
"alignLevel": null
|
|
}
|
|
},
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "postgres",
|
|
"decimals": 8,
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 7,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 18
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 2,
|
|
"legend": {
|
|
"alignAsTable": true,
|
|
"avg": true,
|
|
"current": true,
|
|
"max": false,
|
|
"min": false,
|
|
"show": true,
|
|
"total": false,
|
|
"values": true
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"nullPointMode": "connected",
|
|
"options": {
|
|
"dataLinks": []
|
|
},
|
|
"percentage": false,
|
|
"pointradius": 2,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "bid",
|
|
"color": "#C4162A"
|
|
},
|
|
{
|
|
"alias": "ask",
|
|
"color": "#37872D"
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"format": "time_series",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"NULL"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n avg(ask) AS \"ask\",\n avg(bid) AS \"bid\"\nFROM ticker\nWHERE\n $__timeFilter(date)\nGROUP BY 1\nORDER BY 1",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"ask"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"ask"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"params": [
|
|
"bid"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"bid"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "ticker",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": [],
|
|
"timeFrom": null,
|
|
"timeRegions": [],
|
|
"timeShift": null,
|
|
"title": "Bid / Ask",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"sort": 0,
|
|
"value_type": "individual"
|
|
},
|
|
"type": "graph",
|
|
"xaxis": {
|
|
"buckets": null,
|
|
"mode": "time",
|
|
"name": null,
|
|
"show": true,
|
|
"values": []
|
|
},
|
|
"yaxes": [
|
|
{
|
|
"decimals": 8,
|
|
"format": "currencyBTC",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": true
|
|
}
|
|
],
|
|
"yaxis": {
|
|
"align": false,
|
|
"alignLevel": null
|
|
}
|
|
},
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "postgres",
|
|
"decimals": 0,
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 7,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 18
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 6,
|
|
"legend": {
|
|
"alignAsTable": true,
|
|
"avg": true,
|
|
"current": false,
|
|
"max": true,
|
|
"min": true,
|
|
"rightSide": false,
|
|
"show": true,
|
|
"total": false,
|
|
"values": true
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"nullPointMode": "connected",
|
|
"options": {
|
|
"dataLinks": []
|
|
},
|
|
"percentage": false,
|
|
"pointradius": 2,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "spread_sats",
|
|
"color": "#8F3BB8"
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": true,
|
|
"targets": [
|
|
{
|
|
"format": "time_series",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"NULL"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n avg(spread_sats) AS \"spread_sats\"\nFROM ticker\nWHERE\n $__timeFilter(date)\nGROUP BY 1\nORDER BY 1",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"spread_sats"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"spread_sats"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "ticker",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": [],
|
|
"timeFrom": null,
|
|
"timeRegions": [],
|
|
"timeShift": null,
|
|
"title": "Spread (sats)",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"sort": 0,
|
|
"value_type": "individual"
|
|
},
|
|
"type": "graph",
|
|
"xaxis": {
|
|
"buckets": null,
|
|
"mode": "time",
|
|
"name": null,
|
|
"show": true,
|
|
"values": []
|
|
},
|
|
"yaxes": [
|
|
{
|
|
"decimals": 0,
|
|
"format": "none",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": false
|
|
}
|
|
],
|
|
"yaxis": {
|
|
"align": false,
|
|
"alignLevel": null
|
|
}
|
|
},
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "postgres",
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 9,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 25
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 28,
|
|
"legend": {
|
|
"avg": false,
|
|
"current": false,
|
|
"max": false,
|
|
"min": false,
|
|
"show": false,
|
|
"total": false,
|
|
"values": false
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"nullPointMode": "null",
|
|
"options": {
|
|
"dataLinks": []
|
|
},
|
|
"percentage": false,
|
|
"pointradius": 2,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "price_usd",
|
|
"color": "#FA6400"
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"format": "time_series",
|
|
"group": [],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n date AS \"time\",\n price_usd\nFROM bitcoinprice\nWHERE\n $__timeFilter(date)\nORDER BY 1",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"price_usd"
|
|
],
|
|
"type": "column"
|
|
}
|
|
]
|
|
],
|
|
"table": "bitcoinprice",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": [],
|
|
"timeFrom": null,
|
|
"timeRegions": [],
|
|
"timeShift": null,
|
|
"title": "Bitcoin Price",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"sort": 0,
|
|
"value_type": "individual"
|
|
},
|
|
"type": "graph",
|
|
"xaxis": {
|
|
"buckets": null,
|
|
"mode": "time",
|
|
"name": null,
|
|
"show": true,
|
|
"values": []
|
|
},
|
|
"yaxes": [
|
|
{
|
|
"format": "currencyUSD",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": false
|
|
}
|
|
],
|
|
"yaxis": {
|
|
"align": false,
|
|
"alignLevel": null
|
|
}
|
|
},
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "postgres",
|
|
"decimals": null,
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 9,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 25
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 10,
|
|
"legend": {
|
|
"alignAsTable": true,
|
|
"avg": true,
|
|
"current": true,
|
|
"hideEmpty": false,
|
|
"hideZero": false,
|
|
"max": true,
|
|
"min": true,
|
|
"rightSide": false,
|
|
"show": false,
|
|
"total": false,
|
|
"values": true
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"nullPointMode": "connected",
|
|
"options": {
|
|
"dataLinks": []
|
|
},
|
|
"percentage": false,
|
|
"pointradius": 2,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "/.*/",
|
|
"color": "#B877D9"
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"format": "time_series",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"NULL"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"metricColumn": "none",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n avg(volume) AS \"volume\"\nFROM ticker\nWHERE\n $__timeFilter(date)\nGROUP BY 1\nORDER BY 1",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"volume"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"volume"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "ticker",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": [],
|
|
"timeFrom": null,
|
|
"timeRegions": [],
|
|
"timeShift": null,
|
|
"title": "Volume (BTC)",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"sort": 0,
|
|
"value_type": "individual"
|
|
},
|
|
"type": "graph",
|
|
"xaxis": {
|
|
"buckets": null,
|
|
"mode": "time",
|
|
"name": null,
|
|
"show": true,
|
|
"values": []
|
|
},
|
|
"yaxes": [
|
|
{
|
|
"decimals": null,
|
|
"format": "currencyBTC",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": "0",
|
|
"show": true
|
|
},
|
|
{
|
|
"decimals": 6,
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": false
|
|
}
|
|
],
|
|
"yaxis": {
|
|
"align": false,
|
|
"alignLevel": null
|
|
}
|
|
},
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"cacheTimeout": null,
|
|
"dashLength": 10,
|
|
"dashes": false,
|
|
"datasource": "postgres",
|
|
"decimals": 8,
|
|
"fill": 1,
|
|
"fillGradient": 0,
|
|
"gridPos": {
|
|
"h": 7,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 34
|
|
},
|
|
"hiddenSeries": false,
|
|
"id": 20,
|
|
"legend": {
|
|
"avg": false,
|
|
"current": false,
|
|
"max": false,
|
|
"min": false,
|
|
"show": true,
|
|
"total": false,
|
|
"values": false
|
|
},
|
|
"lines": false,
|
|
"linewidth": 1,
|
|
"links": [],
|
|
"nullPointMode": "null",
|
|
"options": {
|
|
"dataLinks": []
|
|
},
|
|
"percentage": false,
|
|
"pluginVersion": "6.5.0",
|
|
"pointradius": 6,
|
|
"points": true,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "A Buy Orders",
|
|
"color": "#C4162A"
|
|
},
|
|
{
|
|
"alias": "B Sell Orders",
|
|
"color": "#E0B400"
|
|
},
|
|
{
|
|
"alias": "C Fulfilled Orders",
|
|
"color": "rgb(0, 0, 0)",
|
|
"pointradius": 3
|
|
}
|
|
],
|
|
"spaceLength": 10,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"NULL"
|
|
],
|
|
"type": "time"
|
|
},
|
|
{
|
|
"params": [
|
|
"buy"
|
|
],
|
|
"type": "column"
|
|
}
|
|
],
|
|
"hide": false,
|
|
"metricColumn": "uuid",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n uuid AS metric,\n avg(price) AS \"Buy Orders\"\nFROM \"order\"\nWHERE\n $__timeFilter(date) AND\n buy = 'true'\nGROUP BY 1, buy,2\nORDER BY 1,2",
|
|
"refId": "A",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"price"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"Buy Orders"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "\"order\"",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
},
|
|
{
|
|
"datatype": "bool",
|
|
"name": "",
|
|
"params": [
|
|
"buy",
|
|
"=",
|
|
"'true'"
|
|
],
|
|
"type": "expression"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"format": "table",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"NULL"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"hide": false,
|
|
"metricColumn": "uuid",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n uuid AS metric,\n avg(price) AS \"Sell Orders\"\nFROM \"order\"\nWHERE\n $__timeFilter(date) AND\n buy = 'false'\nGROUP BY 1,2\nORDER BY 1,2",
|
|
"refId": "B",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"price"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"Sell Orders"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "\"order\"",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
},
|
|
{
|
|
"datatype": "bool",
|
|
"name": "",
|
|
"params": [
|
|
"buy",
|
|
"=",
|
|
"'false'"
|
|
],
|
|
"type": "expression"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"format": "table",
|
|
"group": [
|
|
{
|
|
"params": [
|
|
"$__interval",
|
|
"NULL"
|
|
],
|
|
"type": "time"
|
|
}
|
|
],
|
|
"hide": false,
|
|
"metricColumn": "uuid",
|
|
"rawQuery": false,
|
|
"rawSql": "SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n uuid AS metric,\n avg(price) AS \"Fulfilled Orders\"\nFROM \"order\"\nWHERE\n $__timeFilter(date) AND\n active = 'false'\nGROUP BY 1,2\nORDER BY 1,2",
|
|
"refId": "C",
|
|
"select": [
|
|
[
|
|
{
|
|
"params": [
|
|
"price"
|
|
],
|
|
"type": "column"
|
|
},
|
|
{
|
|
"params": [
|
|
"avg"
|
|
],
|
|
"type": "aggregate"
|
|
},
|
|
{
|
|
"params": [
|
|
"Fulfilled Orders"
|
|
],
|
|
"type": "alias"
|
|
}
|
|
]
|
|
],
|
|
"table": "\"order\"",
|
|
"timeColumn": "date",
|
|
"timeColumnType": "timestamp",
|
|
"where": [
|
|
{
|
|
"name": "$__timeFilter",
|
|
"params": [],
|
|
"type": "macro"
|
|
},
|
|
{
|
|
"datatype": "bool",
|
|
"name": "",
|
|
"params": [
|
|
"active",
|
|
"=",
|
|
"'false'"
|
|
],
|
|
"type": "expression"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"thresholds": [],
|
|
"timeFrom": null,
|
|
"timeRegions": [],
|
|
"timeShift": null,
|
|
"title": "Orders",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"sort": 0,
|
|
"value_type": "individual"
|
|
},
|
|
"type": "graph",
|
|
"xaxis": {
|
|
"buckets": null,
|
|
"mode": "time",
|
|
"name": null,
|
|
"show": true,
|
|
"values": []
|
|
},
|
|
"yaxes": [
|
|
{
|
|
"decimals": 8,
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": true
|
|
},
|
|
{
|
|
"format": "short",
|
|
"label": null,
|
|
"logBase": 1,
|
|
"max": null,
|
|
"min": null,
|
|
"show": false
|
|
}
|
|
],
|
|
"yaxis": {
|
|
"align": false,
|
|
"alignLevel": null
|
|
}
|
|
}
|
|
],
|
|
"refresh": "30s",
|
|
"schemaVersion": 21,
|
|
"style": "dark",
|
|
"tags": [],
|
|
"templating": {
|
|
"list": []
|
|
},
|
|
"time": {
|
|
"from": "now-12h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {
|
|
"refresh_intervals": [
|
|
"5s",
|
|
"10s",
|
|
"30s",
|
|
"1m",
|
|
"5m",
|
|
"15m",
|
|
"30m",
|
|
"1h",
|
|
"2h",
|
|
"1d"
|
|
]
|
|
},
|
|
"timezone": "",
|
|
"title": "Wownero Trading Desk",
|
|
"uid": "1KF3M1DGz",
|
|
"version": 10
|
|
} |