Step 7 Create a Candlestick

  1. Click on the user heading to open its list.
  2. Near the middle click the purple "POST" button with "/users/{id}/candlesticks" to the right of it.
  3. In the "id" box paste in a copy of your user "id" saved at the end of step 1 without quotes.
  4. In the "data" box enter in JSON providing values for the keys "topicId" and "period" the value of "topicId" is the value saved from the end of step 4 and "period" must be the exact same as supplied for all 4 of the different Aggregates in steps 5 and 6. Example at the end.
Candlestick request example:
{
"topicId": "58b2408c11ced21375a51beb",
"period": 1357
}

Step 8: Update Topic Data

  1. Click on the user heading to open its list.
  2. Near the end click the brown "PUT" button with "/Topics/{id}/updateData" to the right of it.
  3. In the "id" box paste in a copy of the Topic "id" without quotes from the end of step 4.
A note about "updateData": The Topic data will need to use "updateData" few dozen times at least to gather enough Topic data to create a Candlestick chart visualization.  In the box labeled "Curl" you can see the curl command that will update the Topic data, if know how to automate that command using your OS or if there is any other way you can automate a "PUT request to the link in the curl command, then great. If all else fails you can use that "Try it out!" every few minutes till there is enough data. I have a Node-Red flow that can update data also, if anyone wants it just ask in a response to this post.

Step 9: Create a Candlestick Time Series Visualization

  1. Construct a link by starting with "api.datagator.tech/image/candlestick/", then append a copy of the Topic "id" without quotes from the end of step 4, then put "/chart" at the end of that.
  2. The link will need at least one parameter "access_token", place a "?" before that first parameter then tack it on to the end of the link.
  3. Paste the just created into the address bar of you web browser and hit enter.
Example Candlestick time series request example:
https://api.datagator.tech/image/candlestick/58b2897926389b3391378e75/chart?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX