Skip to content

Commit

Permalink
Merge pull request #69 from emilee-saxon/patch-1
Browse files Browse the repository at this point in the history
Update demo.js - charts v1 -> v3
  • Loading branch information
emilee-saxon authored Oct 4, 2024
2 parents d37d635 + 2446f63 commit bed24d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websockets/historical-market-data/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
const uic = document.getElementById("idInstrumentId").value;
const assetType = document.getElementById("idCbxAssetType").value;
const horizon = document.getElementById("idCbxHorizon").value;
let url = demo.apiUrl + "/chart/v1/charts?Uic=" + uic + "&AssetType=" + assetType + "&FieldGroups=BlockInfo,ChartInfo,Data,DisplayAndFormat&Horizon=" + horizon;
let url = demo.apiUrl + "/chart/v3/charts?Uic=" + uic + "&AssetType=" + assetType + "&FieldGroups=BlockInfo,ChartInfo,Data,DisplayAndFormat&Horizon=" + horizon;
if (upToTime !== undefined && upToTime !== null) {
url += "&Mode=UpTo&Time=" + oldestSampleTime.toISOString();
}
Expand Down

0 comments on commit bed24d2

Please sign in to comment.