Skip to content

Instantly share code, notes, and snippets.

@omicronns
Last active April 18, 2020 10:05
Show Gist options
  • Select an option

  • Save omicronns/90cbb2cc2a8046ad1171b1108d73c352 to your computer and use it in GitHub Desktop.

Select an option

Save omicronns/90cbb2cc2a8046ad1171b1108d73c352 to your computer and use it in GitHub Desktop.
Trading data plot api
{
"plot": {
"timestamps": [1234564897, 1234564897],
"datasets": [
{
"label": "Quote funds",
"data": [0.123, 0.2],
"yAxisID": "y_quote"
},
{
"label": "Slow mean",
"data": [100, 101],
"yAxisID": "y_price"
},
{
"label": "Fast mean",
"data": [105, 120],
"yAxisID": "y_price"
},
{
"label": "Price",
"data": [101, 106],
"yAxisID": "y_price"
}
],
"options": {
"title": {
"display": true,
"text": "Trading History"
},
"scales": {
"yAxes": [
{
"type": "linear",
"display": true,
"position": "left",
"id": "y_price"
},
{
"type": "linear",
"display": true,
"position": "right",
"id": "y_quote"
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment