Grafana dashboard: Binance Time Series
Description: Test


{
  "__inputs": [
    {
      "name": "DS_INFINITY",
      "label": "Infinity",
      "description": "",
      "type": "datasource",
      "pluginId": "yesoreyeram-infinity-datasource",
      "pluginName": "Infinity"
    },
    {
      "name": "DS_GOOGLE_SHEETS",
      "label": "Google Sheets",
      "description": "",
      "type": "datasource",
      "pluginId": "grafana-googlesheets-datasource",
      "pluginName": "Google Sheets"
    },
    {
      "name": "VAR_GOOGLESHEETID",
      "type": "constant",
      "label": "GoogleSheetId",
      "value": "1oazDoPtt4UpRBtzQbUOzwPe3ByQbaHlES2VySB0od-o",
      "description": ""
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.1.2"
    },
    {
      "type": "datasource",
      "id": "grafana-googlesheets-datasource",
      "name": "Google Sheets",
      "version": "1.0.1"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart",
      "version": ""
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "yesoreyeram-infinity-datasource",
      "name": "Infinity",
      "version": "0.7.8"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 14978,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1630932809592,
  "links": [],
  "panels": [
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "displayName": "52 week Series",
          "links": [
            {
              "title": "",
              "url": "https://drusn003.grafana.net/d/VhRLB8V7k/binance-time-series?orgId=1&${CRYPTOCODE:queryparam}&from=now-1y&to=now&var-Interval=1d"
            }
          ],
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "semi-dark-orange",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 1,
        "w": 3,
        "x": 12,
        "y": 0
      },
      "id": 4,
      "links": [
        {
          "title": "52 week series",
          "url": "https://drusn003.grafana.net/d/VhRLB8V7k/binance-time-series?orgId=1&${CRYPTOCODE:queryparam}&from=now-1y&to=now&var-Interval=1d"
        }
      ],
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {
          "titleSize": 1
        },
        "textMode": "name"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "displayName": "6 Month Series",
          "links": [
            {
              "title": "",
              "url": "https://drusn003.grafana.net/d/VhRLB8V7k/binance-time-series?orgId=1&${CRYPTOCODE:queryparam}&from=now-180d&to=now&var-Interval=1d"
            }
          ],
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-purple",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 1,
        "w": 3,
        "x": 15,
        "y": 0
      },
      "id": 8,
      "links": [
        {
          "title": "6 month series",
          "url": "https://drusn003.grafana.net/d/VhRLB8V7k/binance-time-series?orgId=1&${CRYPTOCODE:queryparam}&from=now-180d&to=now&var-Interval=1d"
        }
      ],
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "name"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "displayName": "1 month Series",
          "links": [
            {
              "title": "",
              "url": "https://drusn003.grafana.net/d/VhRLB8V7k/binance-time-series?orgId=1&$${CRYPTOCODE:queryparam}&from=now-30d&to=now&var-Interval=1d"
            }
          ],
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "semi-dark-blue",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 1,
        "w": 3,
        "x": 18,
        "y": 0
      },
      "id": 5,
      "links": [
        {
          "title": "1 month series",
          "url": "https://drusn003.grafana.net/d/VhRLB8V7k/binance-time-series?orgId=1&$${CRYPTOCODE:queryparam}&from=now-30d&to=now&var-Interval=1d"
        }
      ],
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "name"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "displayName": "1 week Series",
          "links": [
            {
              "title": "",
              "url": "https://drusn003.grafana.net/d/VhRLB8V7k/binance-time-series?orgId=1&$${CRYPTOCODE:queryparam}&from=now-7d&to=now&var-Interval=1d"
            }
          ],
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "yellow",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 1,
        "w": 3,
        "x": 21,
        "y": 0
      },
      "id": 7,
      "links": [
        {
          "title": "1 week series",
          "url": "https://drusn003.grafana.net/d/VhRLB8V7k/binance-time-series?orgId=1&$${CRYPTOCODE:queryparam}&from=now-7d&to=now&var-Interval=1d"
        }
      ],
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "name"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFINITY}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd",
            "seriesBy": "max"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 1,
            "pointSize": 3,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "always",
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Price"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "semi-dark-green",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 13,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 2,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "min",
            "mean",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "cacheDurationSeconds": 300,
          "columns": [
            {
              "selector": "0",
              "text": "TimeStamp",
              "type": "timestamp_epoch"
            },
            {
              "selector": "1",
              "text": "Price",
              "type": "number"
            }
          ],
          "csv_options": {
            "columns": "",
            "comment": "",
            "delimiter": ",",
            "relax_column_count": false,
            "skip_empty_lines": false,
            "skip_lines_with_error": false
          },
          "data": "",
          "fields": [
            {
              "jsonPath": ""
            }
          ],
          "filters": [],
          "format": "table",
          "global_query_id": "",
          "method": "GET",
          "queryParams": "",
          "refId": "A",
          "root_selector": "",
          "source": "url",
          "type": "json",
          "url": "https://api1.binance.com/api/v3/klines",
          "urlPath": "",
          "url_options": {
            "data": "",
            "method": "GET",
            "params": [
              {
                "key": "symbol",
                "value": "$CRYPTOCODE"
              },
              {
                "key": "interval",
                "value": "$Interval"
              },
              {
                "key": "limit",
                "value": "1000000"
              }
            ]
          }
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "$CRYPTOCODE Time Series",
      "transparent": true,
      "type": "timeseries"
    },
    {
      "datasource": "${DS_GOOGLE_SHEETS}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "color-background-solid"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-blue",
                "value": null
              },
              {
                "color": "transparent",
                "value": 1
              }
            ]
          },
          "unit": "currencyUSD"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 3,
        "y": 14
      },
      "id": 10,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "cacheDurationSeconds": 300,
          "fields": [
            {
              "jsonPath": ""
            }
          ],
          "method": "GET",
          "queryParams": "",
          "range": "Sheet1!A:B",
          "refId": "A",
          "spreadsheet": "$GoogleSheetId",
          "urlPath": ""
        }
      ],
      "title": "Coin Balances",
      "type": "table"
    },
    {
      "datasource": "${DS_GOOGLE_SHEETS}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": []
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 9,
        "x": 12,
        "y": 14
      },
      "id": 11,
      "options": {
        "displayLabels": [
          "name"
        ],
        "legend": {
          "displayMode": "list",
          "placement": "right",
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "cacheDurationSeconds": 300,
          "fields": [
            {
              "jsonPath": ""
            }
          ],
          "method": "GET",
          "queryParams": "",
          "range": "Sheet2!A:B",
          "refId": "A",
          "spreadsheet": "$GoogleSheetId",
          "urlPath": ""
        }
      ],
      "title": "Distribution",
      "transparent": true,
      "type": "piechart"
    }
  ],
  "refresh": "10s",
  "schemaVersion": 30,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "selected": false,
          "text": "BTCUSDT",
          "value": "BTCUSDT"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "CRYPTOCODE",
        "options": [
          {
            "selected": true,
            "text": "BTCUSDT",
            "value": "BTCUSDT"
          },
          {
            "selected": false,
            "text": "ETHUSDT",
            "value": "ETHUSDT"
          }
        ],
        "query": "BTCUSDT,ETHUSDT",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "auto": false,
        "auto_count": 30,
        "auto_min": "10s",
        "current": {
          "selected": false,
          "text": "1d",
          "value": "1d"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "label": null,
        "name": "Interval",
        "options": [
          {
            "selected": false,
            "text": "1m",
            "value": "1m"
          },
          {
            "selected": false,
            "text": "5m",
            "value": "5m"
          },
          {
            "selected": false,
            "text": "30m",
            "value": "30m"
          },
          {
            "selected": false,
            "text": "1h",
            "value": "1h"
          },
          {
            "selected": false,
            "text": "6h",
            "value": "6h"
          },
          {
            "selected": false,
            "text": "12h",
            "value": "12h"
          },
          {
            "selected": true,
            "text": "1d",
            "value": "1d"
          },
          {
            "selected": false,
            "text": "1w",
            "value": "1w"
          },
          {
            "selected": false,
            "text": "1M",
            "value": "1M"
          }
        ],
        "query": "1m,5m,30m,1h,6h,12h,1d,1w,1M",
        "queryValue": "",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      },
      {
        "description": null,
        "error": null,
        "hide": 2,
        "label": null,
        "name": "GoogleSheetId",
        "query": "${VAR_GOOGLESHEETID}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_GOOGLESHEETID}",
          "text": "${VAR_GOOGLESHEETID}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_GOOGLESHEETID}",
            "text": "${VAR_GOOGLESHEETID}",
            "selected": false
          }
        ]
      }
    ]
  },
  "time": {
    "from": "now-1y",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Binance Time Series",
  "uid": "VhRLB8V7k",
  "version": 36,
  "description": "Test"
}