"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",
"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",
"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",
"rawSql":"SELECT\n $__timeGroupAlias(date,$__interval),\n count(price) AS \"price\"\nFROM \"order\"\nWHERE\n active = 'true' AND\n cancelled = 'false'\nGROUP BY 1\nORDER BY 1",
"content":"\n# Balances\n\nBalances and trade info of your account.\n\n\n\n",
"datasource":null,
"gridPos":{
"h":3,
"w":24,
"x":0,
"y":11
},
"id":17,
"mode":"markdown",
"options":{},
"timeFrom":null,
"timeShift":null,
"title":"",
"type":"text"
},
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":null,
"decimals":8,
"fill":1,
"fillGradient":0,
"gridPos":{
"h":8,
"w":12,
"x":0,
"y":14
},
"hiddenSeries":false,
"id":12,
"legend":{
"alignAsTable":true,
"avg":true,
"current":true,
"max":true,
"min":true,
"rightSide":false,
"show":true,
"total":false,
"values":true
},
"lines":true,
"linewidth":1,
"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":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 = $currency\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",
"=",
"$currency"
],
"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 = $currency\nGROUP BY 1\nORDER BY 1",
"rawSql":"SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n avg(total) AS \"total\"\nFROM balance\nWHERE\n $__timeFilter(date) AND\n currency = $currency\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",
"=",
"$currency"
],
"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 = $currency\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",
"=",
"$currency"
],
"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
}
},
{
"content":"\n# Markets\n\nGeneral stats and metrics of the $currency markets\n\n\n\n",
"datasource":null,
"gridPos":{
"h":3,
"w":24,
"x":0,
"y":22
},
"id":15,
"mode":"markdown",
"options":{},
"timeFrom":null,
"timeShift":null,
"title":"",
"type":"text"
},
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":null,
"decimals":8,
"fill":1,
"fillGradient":0,
"gridPos":{
"h":7,
"w":12,
"x":0,
"y":25
},
"hiddenSeries":false,
"id":4,
"legend":{
"alignAsTable":true,
"avg":true,
"current":true,
"hideEmpty":false,
"hideZero":false,
"max":false,
"min":false,
"rightSide":false,
"show":true,
"total":false,
"values":true
},
"lines":true,
"linewidth":1,
"nullPointMode":"connected",
"options":{
"dataLinks":[]
},
"percentage":false,
"pointradius":2,
"points":false,
"renderer":"flot",
"seriesOverrides":[],
"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(current_price) AS \"current_price\"\nFROM ticker\nWHERE\n $__timeFilter(date)\nGROUP BY 1\nORDER BY 1",
"refId":"A",
"select":[
[
{
"params":[
"current_price"
],
"type":"column"
},
{
"params":[
"avg"
],
"type":"aggregate"
},
{
"params":[
"current_price"
],
"type":"alias"
}
]
],
"table":"ticker",
"timeColumn":"date",
"timeColumnType":"timestamp",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
}
]
}
],
"thresholds":[],
"timeFrom":null,
"timeRegions":[],
"timeShift":null,
"title":"Price",
"tooltip":{
"shared":true,
"sort":0,
"value_type":"cumulative"
},
"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":false
}
],
"yaxis":{
"align":false,
"alignLevel":null
}
},
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":null,
"decimals":0,
"fill":1,
"fillGradient":0,
"gridPos":{
"h":7,
"w":12,
"x":12,
"y":25
},
"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":1,
"nullPointMode":"connected",
"options":{
"dataLinks":[]
},
"percentage":false,
"pointradius":2,
"points":false,
"renderer":"flot",
"seriesOverrides":[],
"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(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":null,
"decimals":8,
"fill":1,
"fillGradient":0,
"gridPos":{
"h":7,
"w":12,
"x":0,
"y":32
},
"hiddenSeries":false,
"id":2,
"legend":{
"alignAsTable":true,
"avg":true,
"current":true,
"max":false,
"min":false,
"show":true,
"total":false,
"values":true
},
"lines":true,
"linewidth":1,
"nullPointMode":"connected",
"options":{
"dataLinks":[]
},
"percentage":false,
"pointradius":2,
"points":false,
"renderer":"flot",
"seriesOverrides":[],
"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":null,
"fill":1,
"fillGradient":0,
"gridPos":{
"h":7,
"w":12,
"x":12,
"y":32
},
"hiddenSeries":false,
"id":8,
"legend":{
"alignAsTable":true,
"avg":true,
"current":false,
"max":true,
"min":true,
"show":true,
"total":false,
"values":true
},
"lines":true,
"linewidth":1,
"nullPointMode":"connected",
"options":{
"dataLinks":[]
},
"percentage":false,
"pointradius":2,
"points":false,
"renderer":"flot",
"seriesOverrides":[],
"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(spread_perc) AS \"spread_perc\"\nFROM ticker\nWHERE\n $__timeFilter(date)\nGROUP BY 1\nORDER BY 1",
"refId":"A",
"select":[
[
{
"params":[
"spread_perc"
],
"type":"column"
},
{
"params":[
"avg"
],
"type":"aggregate"
},
{
"params":[
"spread_perc"
],
"type":"alias"
}
]
],
"table":"ticker",
"timeColumn":"date",
"timeColumnType":"timestamp",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
}
]
}
],
"thresholds":[],
"timeFrom":null,
"timeRegions":[],
"timeShift":null,
"title":"Spread (%)",
"tooltip":{
"shared":true,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"buckets":null,
"mode":"time",
"name":null,
"show":true,
"values":[]
},
"yaxes":[
{
"format":"percent",
"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":null,
"decimals":null,
"fill":1,
"fillGradient":0,
"gridPos":{
"h":8,
"w":24,
"x":0,
"y":39
},
"hiddenSeries":false,
"id":10,
"legend":{
"alignAsTable":true,
"avg":true,
"current":true,
"hideEmpty":false,
"hideZero":false,
"max":true,
"min":true,
"rightSide":false,
"show":true,
"total":false,
"values":true
},
"lines":true,
"linewidth":1,
"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",