@oanda/labs-crowd-view-widget 1.0.43 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +364 -0
- package/dist/main/CrowdViewWidget/CrowdViewWidget.js +3 -3
- package/dist/main/CrowdViewWidget/CrowdViewWidget.js.map +1 -1
- package/dist/main/CrowdViewWidget/Main.js +22 -12
- package/dist/main/CrowdViewWidget/Main.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/Chart.js +16 -17
- package/dist/main/CrowdViewWidget/components/Chart/Chart.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/ChartWithData.js +16 -13
- package/dist/main/CrowdViewWidget/components/Chart/ChartWithData.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/{getOption.js → chartOptions.js} +79 -62
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/index.js +44 -0
- package/dist/main/CrowdViewWidget/components/Chart/index.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/types.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/useCrowdViewData.js +184 -0
- package/dist/main/CrowdViewWidget/components/Chart/useCrowdViewData.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/utils/chartUtils.js +107 -0
- package/dist/main/CrowdViewWidget/components/Chart/utils/chartUtils.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Legend/Legend.js +3 -2
- package/dist/main/CrowdViewWidget/components/Legend/Legend.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Legend/LegendBar.js +9 -11
- package/dist/main/CrowdViewWidget/components/Legend/LegendBar.js.map +1 -1
- package/dist/main/CrowdViewWidget/constants.js +31 -0
- package/dist/main/CrowdViewWidget/constants.js.map +1 -0
- package/dist/main/CrowdViewWidget/render.js +1 -0
- package/dist/main/CrowdViewWidget/render.js.map +1 -1
- package/dist/main/CrowdViewWidget/selectConfig.js +121 -0
- package/dist/main/CrowdViewWidget/selectConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/types/index.js +17 -0
- package/dist/main/CrowdViewWidget/types/index.js.map +1 -0
- package/dist/main/CrowdViewWidget/types/instruments.js +45 -0
- package/dist/main/CrowdViewWidget/types/instruments.js.map +1 -0
- package/dist/main/CrowdViewWidget/types.js +0 -44
- package/dist/main/CrowdViewWidget/types.js.map +1 -1
- package/dist/main/CrowdViewWidget/utils/instrumentUtils.js +13 -0
- package/dist/main/CrowdViewWidget/utils/instrumentUtils.js.map +1 -0
- package/dist/main/gql/getOrderPositionBooks.js +1 -1
- package/dist/main/gql/getOrderPositionBooks.js.map +1 -1
- package/dist/main/gql/getPriceCandles.js +11 -0
- package/dist/main/gql/getPriceCandles.js.map +1 -0
- package/dist/main/gql/types/gql.js +2 -3
- package/dist/main/gql/types/gql.js.map +1 -1
- package/dist/main/gql/types/graphql.js +161 -160
- package/dist/main/gql/types/graphql.js.map +1 -1
- package/dist/main/translations/sources/en.json +24 -0
- package/dist/module/CrowdViewWidget/CrowdViewWidget.js +3 -3
- package/dist/module/CrowdViewWidget/CrowdViewWidget.js.map +1 -1
- package/dist/module/CrowdViewWidget/Main.js +23 -13
- package/dist/module/CrowdViewWidget/Main.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/Chart.js +15 -16
- package/dist/module/CrowdViewWidget/components/Chart/Chart.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/ChartWithData.js +16 -12
- package/dist/module/CrowdViewWidget/components/Chart/ChartWithData.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/{getOption.js → chartOptions.js} +77 -59
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/index.js +4 -0
- package/dist/module/CrowdViewWidget/components/Chart/index.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/types.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/useCrowdViewData.js +177 -0
- package/dist/module/CrowdViewWidget/components/Chart/useCrowdViewData.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/utils/chartUtils.js +94 -0
- package/dist/module/CrowdViewWidget/components/Chart/utils/chartUtils.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Legend/Legend.js +3 -2
- package/dist/module/CrowdViewWidget/components/Legend/Legend.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Legend/LegendBar.js +9 -11
- package/dist/module/CrowdViewWidget/components/Legend/LegendBar.js.map +1 -1
- package/dist/module/CrowdViewWidget/constants.js +25 -0
- package/dist/module/CrowdViewWidget/constants.js.map +1 -0
- package/dist/module/CrowdViewWidget/render.js +1 -0
- package/dist/module/CrowdViewWidget/render.js.map +1 -1
- package/dist/module/CrowdViewWidget/selectConfig.js +116 -0
- package/dist/module/CrowdViewWidget/selectConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/types/index.js +2 -0
- package/dist/module/CrowdViewWidget/types/index.js.map +1 -0
- package/dist/module/CrowdViewWidget/types/instruments.js +39 -0
- package/dist/module/CrowdViewWidget/types/instruments.js.map +1 -0
- package/dist/module/CrowdViewWidget/types.js +1 -43
- package/dist/module/CrowdViewWidget/types.js.map +1 -1
- package/dist/module/CrowdViewWidget/utils/instrumentUtils.js +6 -0
- package/dist/module/CrowdViewWidget/utils/instrumentUtils.js.map +1 -0
- package/dist/module/gql/getOrderPositionBooks.js +1 -1
- package/dist/module/gql/getOrderPositionBooks.js.map +1 -1
- package/dist/module/gql/getPriceCandles.js +6 -0
- package/dist/module/gql/getPriceCandles.js.map +1 -0
- package/dist/module/gql/types/gql.js +2 -3
- package/dist/module/gql/types/gql.js.map +1 -1
- package/dist/module/gql/types/graphql.js +160 -159
- package/dist/module/gql/types/graphql.js.map +1 -1
- package/dist/module/translations/sources/en.json +24 -0
- package/dist/types/CrowdViewWidget/CrowdViewWidget.d.ts +1 -1
- package/dist/types/CrowdViewWidget/components/Chart/ChartWithData.d.ts +1 -1
- package/dist/types/CrowdViewWidget/components/Chart/index.d.ts +4 -0
- package/dist/types/CrowdViewWidget/components/Chart/types.d.ts +23 -16
- package/dist/types/CrowdViewWidget/components/Chart/useCrowdViewData.d.ts +2 -0
- package/dist/types/CrowdViewWidget/components/Chart/{utils.d.ts → utils/chartUtils.d.ts} +9 -11
- package/dist/types/CrowdViewWidget/components/Legend/Legend.d.ts +3 -3
- package/dist/types/CrowdViewWidget/constants.d.ts +24 -0
- package/dist/types/CrowdViewWidget/selectConfig.d.ts +19 -0
- package/dist/types/CrowdViewWidget/types/index.d.ts +1 -0
- package/dist/types/CrowdViewWidget/types/instruments.d.ts +36 -0
- package/dist/types/CrowdViewWidget/types.d.ts +2 -50
- package/dist/types/CrowdViewWidget/utils/instrumentUtils.d.ts +8 -0
- package/dist/types/gql/types/gql.d.ts +10 -14
- package/dist/types/gql/types/graphql.d.ts +71 -63
- package/lokalise.config.json +1 -1
- package/package.json +6 -4
- package/src/CrowdViewWidget/CrowdViewWidget.tsx +2 -2
- package/src/CrowdViewWidget/Main.tsx +32 -22
- package/src/CrowdViewWidget/components/Chart/Chart.tsx +21 -17
- package/src/CrowdViewWidget/components/Chart/ChartWithData.tsx +12 -12
- package/src/CrowdViewWidget/components/Chart/chartOptions.ts +205 -0
- package/src/CrowdViewWidget/components/Chart/index.ts +4 -0
- package/src/CrowdViewWidget/components/Chart/types.ts +30 -24
- package/src/CrowdViewWidget/components/Chart/useCrowdViewData.ts +288 -0
- package/src/CrowdViewWidget/components/Chart/utils/chartUtils.ts +161 -0
- package/src/CrowdViewWidget/components/Legend/Legend.tsx +7 -3
- package/src/CrowdViewWidget/components/Legend/LegendBar.tsx +16 -20
- package/src/CrowdViewWidget/constants.ts +28 -0
- package/src/CrowdViewWidget/render.tsx +1 -0
- package/src/CrowdViewWidget/{config.ts → selectConfig.ts} +65 -43
- package/src/CrowdViewWidget/types/index.ts +1 -0
- package/src/CrowdViewWidget/types/instruments.ts +37 -0
- package/src/CrowdViewWidget/types.ts +4 -55
- package/src/CrowdViewWidget/utils/instrumentUtils.ts +11 -0
- package/src/gql/getOrderPositionBooks.ts +9 -4
- package/src/gql/{mock/getPriceCandles.ts → getPriceCandles.ts} +5 -5
- package/src/gql/types/gql.ts +6 -14
- package/src/gql/types/graphql.ts +170 -160
- package/src/translations/sources/en.json +24 -0
- package/test/Main.test.tsx +73 -27
- package/test/components/Chart/utils/chartUtils.test.ts +172 -0
- package/test/components/Legend.test.tsx +3 -6
- package/test/components/LegendBar.test.tsx +7 -8
- package/test/utils/instrumentUtils.test.ts +52 -0
- package/dist/main/CrowdViewWidget/components/Chart/constants.js +0 -14
- package/dist/main/CrowdViewWidget/components/Chart/constants.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/getOption.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/getOrderPositionDataMock.js +0 -47
- package/dist/main/CrowdViewWidget/components/Chart/getOrderPositionDataMock.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/getPriceCandlesMock.js +0 -36
- package/dist/main/CrowdViewWidget/components/Chart/getPriceCandlesMock.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/utils.js +0 -166
- package/dist/main/CrowdViewWidget/components/Chart/utils.js.map +0 -1
- package/dist/main/CrowdViewWidget/config.js +0 -107
- package/dist/main/CrowdViewWidget/config.js.map +0 -1
- package/dist/main/gql/mock/getPriceCandles.js +0 -11
- package/dist/main/gql/mock/getPriceCandles.js.map +0 -1
- package/dist/main/gql/mock/schema.graphqls +0 -62
- package/dist/main/gql/validateInstruments.js +0 -11
- package/dist/main/gql/validateInstruments.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/constants.js +0 -8
- package/dist/module/CrowdViewWidget/components/Chart/constants.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/getOption.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/getOrderPositionDataMock.js +0 -40
- package/dist/module/CrowdViewWidget/components/Chart/getOrderPositionDataMock.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/getPriceCandlesMock.js +0 -29
- package/dist/module/CrowdViewWidget/components/Chart/getPriceCandlesMock.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/utils.js +0 -156
- package/dist/module/CrowdViewWidget/components/Chart/utils.js.map +0 -1
- package/dist/module/CrowdViewWidget/config.js +0 -102
- package/dist/module/CrowdViewWidget/config.js.map +0 -1
- package/dist/module/gql/mock/getPriceCandles.js +0 -6
- package/dist/module/gql/mock/getPriceCandles.js.map +0 -1
- package/dist/module/gql/mock/schema.graphqls +0 -62
- package/dist/module/gql/validateInstruments.js +0 -5
- package/dist/module/gql/validateInstruments.js.map +0 -1
- package/dist/types/CrowdViewWidget/components/Chart/constants.d.ts +0 -7
- package/dist/types/CrowdViewWidget/components/Chart/getOrderPositionDataMock.d.ts +0 -14
- package/dist/types/CrowdViewWidget/components/Chart/getPriceCandlesMock.d.ts +0 -2
- package/dist/types/CrowdViewWidget/config.d.ts +0 -22
- package/dist/types/gql/validateInstruments.d.ts +0 -1
- package/src/CrowdViewWidget/components/Chart/constants.tsx +0 -8
- package/src/CrowdViewWidget/components/Chart/getOption.ts +0 -200
- package/src/CrowdViewWidget/components/Chart/getOrderPositionDataMock.ts +0 -66
- package/src/CrowdViewWidget/components/Chart/getPriceCandlesMock.ts +0 -43
- package/src/CrowdViewWidget/components/Chart/utils.ts +0 -191
- package/src/gql/mock/schema.graphqls +0 -62
- package/src/gql/validateInstruments.ts +0 -10
- /package/dist/types/CrowdViewWidget/components/Chart/{getOption.d.ts → chartOptions.d.ts} +0 -0
- /package/dist/types/gql/{mock/getPriceCandles.d.ts → getPriceCandles.d.ts} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getPriceCandles = void 0;
|
|
7
|
+
var _client = require("@apollo/client");
|
|
8
|
+
var _templateObject;
|
|
9
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
10
|
+
const getPriceCandles = exports.getPriceCandles = (0, _client.gql)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n query GetPriceCandles(\n $dataSource: DataSource!\n $division: Division!\n $instrument: String!\n $granularity: Granularity!\n $timeSpan: TimeSpan!\n ) {\n priceCandles(\n dataSource: $dataSource\n division: $division\n instrument: $instrument\n granularity: $granularity\n timeSpan: $timeSpan\n ) {\n candle {\n point\n high\n low\n open\n close\n }\n }\n }\n"])));
|
|
11
|
+
//# sourceMappingURL=getPriceCandles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPriceCandles.js","names":["_client","require","_templateObject","_taggedTemplateLiteral","e","t","slice","Object","freeze","defineProperties","raw","value","getPriceCandles","exports","gql"],"sources":["../../../src/gql/getPriceCandles.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst getPriceCandles = gql`\n query GetPriceCandles(\n $dataSource: DataSource!\n $division: Division!\n $instrument: String!\n $granularity: Granularity!\n $timeSpan: TimeSpan!\n ) {\n priceCandles(\n dataSource: $dataSource\n division: $division\n instrument: $instrument\n granularity: $granularity\n timeSpan: $timeSpan\n ) {\n candle {\n point\n high\n low\n open\n close\n }\n }\n }\n`;\n\nexport { getPriceCandles };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAqC,IAAAC,eAAA;AAAA,SAAAC,uBAAAC,CAAA,EAAAC,CAAA,WAAAA,CAAA,KAAAA,CAAA,GAAAD,CAAA,CAAAE,KAAA,MAAAC,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAE,gBAAA,CAAAL,CAAA,IAAAM,GAAA,IAAAC,KAAA,EAAAJ,MAAA,CAAAC,MAAA,CAAAH,CAAA;AAErC,MAAMO,eAAe,GAAAC,OAAA,CAAAD,eAAA,OAAGE,WAAG,EAAAZ,eAAA,KAAAA,eAAA,GAAAC,sBAAA,odAwB1B","ignoreList":[]}
|
|
@@ -7,9 +7,8 @@ exports.graphql = graphql;
|
|
|
7
7
|
var types = _interopRequireWildcard(require("./graphql"));
|
|
8
8
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
9
9
|
const documents = {
|
|
10
|
-
'\n query GetOrderPositionBooks(\n $instrument: String!\n $bookType: BookType!\n $
|
|
11
|
-
'\n query GetPriceCandles(\n $division: Division
|
|
12
|
-
'\n query validateInstruments($instruments: [String]!, $division: Division) {\n mapInstrumentNames(instruments: $instruments, division: $division) {\n name\n displayName\n }\n }\n': types.ValidateInstrumentsDocument
|
|
10
|
+
'\n query GetOrderPositionBooks(\n $instrument: String!\n $bookType: BookType!\n $timeSpan: TimeSpan!\n $granularity: Granularity!\n $maxBookPrice: Float\n $minBookPrice: Float\n ) {\n orderPositionBooks(\n instrument: $instrument\n bookType: $bookType\n timeSpan: $timeSpan\n granularity: $granularity\n maxBookPrice: $maxBookPrice\n minBookPrice: $minBookPrice\n ) {\n bucketWidth\n price\n time\n buckets {\n price\n sentiment\n }\n }\n }\n': types.GetOrderPositionBooksDocument,
|
|
11
|
+
'\n query GetPriceCandles(\n $dataSource: DataSource!\n $division: Division!\n $instrument: String!\n $granularity: Granularity!\n $timeSpan: TimeSpan!\n ) {\n priceCandles(\n dataSource: $dataSource\n division: $division\n instrument: $instrument\n granularity: $granularity\n timeSpan: $timeSpan\n ) {\n candle {\n point\n high\n low\n open\n close\n }\n }\n }\n': types.GetPriceCandlesDocument
|
|
13
12
|
};
|
|
14
13
|
function graphql(source) {
|
|
15
14
|
var _source;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gql.js","names":["types","_interopRequireWildcard","require","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","documents","GetOrderPositionBooksDocument","GetPriceCandlesDocument","
|
|
1
|
+
{"version":3,"file":"gql.js","names":["types","_interopRequireWildcard","require","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","documents","GetOrderPositionBooksDocument","GetPriceCandlesDocument","graphql","source","_source"],"sources":["../../../../src/gql/types/gql.ts"],"sourcesContent":["/* eslint-disable */\nimport * as types from './graphql';\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n */\nconst documents = {\n '\\n query GetOrderPositionBooks(\\n $instrument: String!\\n $bookType: BookType!\\n $timeSpan: TimeSpan!\\n $granularity: Granularity!\\n $maxBookPrice: Float\\n $minBookPrice: Float\\n ) {\\n orderPositionBooks(\\n instrument: $instrument\\n bookType: $bookType\\n timeSpan: $timeSpan\\n granularity: $granularity\\n maxBookPrice: $maxBookPrice\\n minBookPrice: $minBookPrice\\n ) {\\n bucketWidth\\n price\\n time\\n buckets {\\n price\\n sentiment\\n }\\n }\\n }\\n':\n types.GetOrderPositionBooksDocument,\n '\\n query GetPriceCandles(\\n $dataSource: DataSource!\\n $division: Division!\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n priceCandles(\\n dataSource: $dataSource\\n division: $division\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n candle {\\n point\\n high\\n low\\n open\\n close\\n }\\n }\\n }\\n':\n types.GetPriceCandlesDocument,\n};\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function graphql(source: string): unknown;\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: '\\n query GetOrderPositionBooks(\\n $instrument: String!\\n $bookType: BookType!\\n $timeSpan: TimeSpan!\\n $granularity: Granularity!\\n $maxBookPrice: Float\\n $minBookPrice: Float\\n ) {\\n orderPositionBooks(\\n instrument: $instrument\\n bookType: $bookType\\n timeSpan: $timeSpan\\n granularity: $granularity\\n maxBookPrice: $maxBookPrice\\n minBookPrice: $minBookPrice\\n ) {\\n bucketWidth\\n price\\n time\\n buckets {\\n price\\n sentiment\\n }\\n }\\n }\\n'\n): (typeof documents)['\\n query GetOrderPositionBooks(\\n $instrument: String!\\n $bookType: BookType!\\n $timeSpan: TimeSpan!\\n $granularity: Granularity!\\n $maxBookPrice: Float\\n $minBookPrice: Float\\n ) {\\n orderPositionBooks(\\n instrument: $instrument\\n bookType: $bookType\\n timeSpan: $timeSpan\\n granularity: $granularity\\n maxBookPrice: $maxBookPrice\\n minBookPrice: $minBookPrice\\n ) {\\n bucketWidth\\n price\\n time\\n buckets {\\n price\\n sentiment\\n }\\n }\\n }\\n'];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: '\\n query GetPriceCandles(\\n $dataSource: DataSource!\\n $division: Division!\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n priceCandles(\\n dataSource: $dataSource\\n division: $division\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n candle {\\n point\\n high\\n low\\n open\\n close\\n }\\n }\\n }\\n'\n): (typeof documents)['\\n query GetPriceCandles(\\n $dataSource: DataSource!\\n $division: Division!\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n priceCandles(\\n dataSource: $dataSource\\n division: $division\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n candle {\\n point\\n high\\n low\\n open\\n close\\n }\\n }\\n }\\n'];\n\nexport function graphql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType<TDocumentNode extends DocumentNode<any, any>> =\n TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;\n"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAmC,SAAAD,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAanC,MAAMkB,SAAS,GAAG;EAChB,+hBAA+hB,EAC7hBtB,KAAK,CAACuB,6BAA6B;EACrC,8cAA8c,EAC5cvB,KAAK,CAACwB;AACV,CAAC;AA6BM,SAASC,OAAOA,CAACC,MAAc,EAAE;EAAA,IAAAC,OAAA;EACtC,QAAAA,OAAA,GAAQL,SAAS,CAASI,MAAM,CAAC,cAAAC,OAAA,cAAAA,OAAA,GAAI,CAAC,CAAC;AACzC","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.VolatilityChartTimeUnit = exports.VolatilityChartTimeSpan = exports.ValueAtRiskDuration = exports.ValueAtRiskBars = exports.
|
|
6
|
+
exports.VolatilityChartTimeUnit = exports.VolatilityChartTimeSpan = exports.ValueAtRiskDuration = exports.ValueAtRiskBars = exports.TradeMode = exports.TopicalSort = exports.TimeSpan = exports.Sort = exports.Region = exports.OrderBookDataSource = exports.Granularity = exports.GetPriceCandlesDocument = exports.GetOrderPositionBooksDocument = exports.Division = exports.DataSource = exports.CurrencyPowerBalanceTimeUnit = exports.CurrencyName = exports.CorrelationTimeUnit = exports.BookType = exports.AssetClassName = void 0;
|
|
7
7
|
let AssetClassName = exports.AssetClassName = function (AssetClassName) {
|
|
8
8
|
AssetClassName["Commodities"] = "COMMODITIES";
|
|
9
9
|
AssetClassName["Cryptocurrency"] = "CRYPTOCURRENCY";
|
|
@@ -53,8 +53,9 @@ let CurrencyPowerBalanceTimeUnit = exports.CurrencyPowerBalanceTimeUnit = functi
|
|
|
53
53
|
return CurrencyPowerBalanceTimeUnit;
|
|
54
54
|
}({});
|
|
55
55
|
let DataSource = exports.DataSource = function (DataSource) {
|
|
56
|
-
DataSource["
|
|
57
|
-
DataSource["
|
|
56
|
+
DataSource["All"] = "ALL";
|
|
57
|
+
DataSource["Mt5"] = "MT5";
|
|
58
|
+
DataSource["V20"] = "V20";
|
|
58
59
|
return DataSource;
|
|
59
60
|
}({});
|
|
60
61
|
let Division = exports.Division = function (Division) {
|
|
@@ -70,18 +71,17 @@ let Division = exports.Division = function (Division) {
|
|
|
70
71
|
return Division;
|
|
71
72
|
}({});
|
|
72
73
|
let Granularity = exports.Granularity = function (Granularity) {
|
|
73
|
-
Granularity["
|
|
74
|
-
Granularity["
|
|
75
|
-
Granularity["
|
|
76
|
-
Granularity["
|
|
77
|
-
Granularity["Minute_15"] = "MINUTE_15";
|
|
78
|
-
Granularity["Minute_30"] = "MINUTE_30";
|
|
74
|
+
Granularity["H1"] = "H1";
|
|
75
|
+
Granularity["H4"] = "H4";
|
|
76
|
+
Granularity["M5"] = "M5";
|
|
77
|
+
Granularity["M15"] = "M15";
|
|
79
78
|
return Granularity;
|
|
80
79
|
}({});
|
|
81
|
-
let
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
let OrderBookDataSource = exports.OrderBookDataSource = function (OrderBookDataSource) {
|
|
81
|
+
OrderBookDataSource["Ny4"] = "NY4";
|
|
82
|
+
OrderBookDataSource["Ny4Mt5"] = "NY4_MT5";
|
|
83
|
+
OrderBookDataSource["Ty3"] = "TY3";
|
|
84
|
+
return OrderBookDataSource;
|
|
85
85
|
}({});
|
|
86
86
|
let Region = exports.Region = function (Region) {
|
|
87
87
|
Region["Amer"] = "AMER";
|
|
@@ -95,17 +95,11 @@ let Sort = exports.Sort = function (Sort) {
|
|
|
95
95
|
return Sort;
|
|
96
96
|
}({});
|
|
97
97
|
let TimeSpan = exports.TimeSpan = function (TimeSpan) {
|
|
98
|
-
TimeSpan["
|
|
99
|
-
TimeSpan["
|
|
100
|
-
TimeSpan["
|
|
101
|
-
TimeSpan["
|
|
102
|
-
TimeSpan["
|
|
103
|
-
TimeSpan["Month_3"] = "MONTH_3";
|
|
104
|
-
TimeSpan["Month_6"] = "MONTH_6";
|
|
105
|
-
TimeSpan["Week_1"] = "WEEK_1";
|
|
106
|
-
TimeSpan["Week_2"] = "WEEK_2";
|
|
107
|
-
TimeSpan["Week_3"] = "WEEK_3";
|
|
108
|
-
TimeSpan["Year_1"] = "YEAR_1";
|
|
98
|
+
TimeSpan["FiveDays"] = "FIVE_DAYS";
|
|
99
|
+
TimeSpan["NinetyDays"] = "NINETY_DAYS";
|
|
100
|
+
TimeSpan["TenDays"] = "TEN_DAYS";
|
|
101
|
+
TimeSpan["TwentyDays"] = "TWENTY_DAYS";
|
|
102
|
+
TimeSpan["TwoDays"] = "TWO_DAYS";
|
|
109
103
|
return TimeSpan;
|
|
110
104
|
}({});
|
|
111
105
|
let TopicalSort = exports.TopicalSort = function (TopicalSort) {
|
|
@@ -208,14 +202,68 @@ const GetOrderPositionBooksDocument = exports.GetOrderPositionBooksDocument = {
|
|
|
208
202
|
kind: 'Variable',
|
|
209
203
|
name: {
|
|
210
204
|
kind: 'Name',
|
|
211
|
-
value: '
|
|
205
|
+
value: 'timeSpan'
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
type: {
|
|
209
|
+
kind: 'NonNullType',
|
|
210
|
+
type: {
|
|
211
|
+
kind: 'NamedType',
|
|
212
|
+
name: {
|
|
213
|
+
kind: 'Name',
|
|
214
|
+
value: 'TimeSpan'
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}, {
|
|
219
|
+
kind: 'VariableDefinition',
|
|
220
|
+
variable: {
|
|
221
|
+
kind: 'Variable',
|
|
222
|
+
name: {
|
|
223
|
+
kind: 'Name',
|
|
224
|
+
value: 'granularity'
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
type: {
|
|
228
|
+
kind: 'NonNullType',
|
|
229
|
+
type: {
|
|
230
|
+
kind: 'NamedType',
|
|
231
|
+
name: {
|
|
232
|
+
kind: 'Name',
|
|
233
|
+
value: 'Granularity'
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}, {
|
|
238
|
+
kind: 'VariableDefinition',
|
|
239
|
+
variable: {
|
|
240
|
+
kind: 'Variable',
|
|
241
|
+
name: {
|
|
242
|
+
kind: 'Name',
|
|
243
|
+
value: 'maxBookPrice'
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
type: {
|
|
247
|
+
kind: 'NamedType',
|
|
248
|
+
name: {
|
|
249
|
+
kind: 'Name',
|
|
250
|
+
value: 'Float'
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}, {
|
|
254
|
+
kind: 'VariableDefinition',
|
|
255
|
+
variable: {
|
|
256
|
+
kind: 'Variable',
|
|
257
|
+
name: {
|
|
258
|
+
kind: 'Name',
|
|
259
|
+
value: 'minBookPrice'
|
|
212
260
|
}
|
|
213
261
|
},
|
|
214
262
|
type: {
|
|
215
263
|
kind: 'NamedType',
|
|
216
264
|
name: {
|
|
217
265
|
kind: 'Name',
|
|
218
|
-
value: '
|
|
266
|
+
value: 'Float'
|
|
219
267
|
}
|
|
220
268
|
}
|
|
221
269
|
}],
|
|
@@ -257,13 +305,52 @@ const GetOrderPositionBooksDocument = exports.GetOrderPositionBooksDocument = {
|
|
|
257
305
|
kind: 'Argument',
|
|
258
306
|
name: {
|
|
259
307
|
kind: 'Name',
|
|
260
|
-
value: '
|
|
308
|
+
value: 'timeSpan'
|
|
261
309
|
},
|
|
262
310
|
value: {
|
|
263
311
|
kind: 'Variable',
|
|
264
312
|
name: {
|
|
265
313
|
kind: 'Name',
|
|
266
|
-
value: '
|
|
314
|
+
value: 'timeSpan'
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}, {
|
|
318
|
+
kind: 'Argument',
|
|
319
|
+
name: {
|
|
320
|
+
kind: 'Name',
|
|
321
|
+
value: 'granularity'
|
|
322
|
+
},
|
|
323
|
+
value: {
|
|
324
|
+
kind: 'Variable',
|
|
325
|
+
name: {
|
|
326
|
+
kind: 'Name',
|
|
327
|
+
value: 'granularity'
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}, {
|
|
331
|
+
kind: 'Argument',
|
|
332
|
+
name: {
|
|
333
|
+
kind: 'Name',
|
|
334
|
+
value: 'maxBookPrice'
|
|
335
|
+
},
|
|
336
|
+
value: {
|
|
337
|
+
kind: 'Variable',
|
|
338
|
+
name: {
|
|
339
|
+
kind: 'Name',
|
|
340
|
+
value: 'maxBookPrice'
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}, {
|
|
344
|
+
kind: 'Argument',
|
|
345
|
+
name: {
|
|
346
|
+
kind: 'Name',
|
|
347
|
+
value: 'minBookPrice'
|
|
348
|
+
},
|
|
349
|
+
value: {
|
|
350
|
+
kind: 'Variable',
|
|
351
|
+
name: {
|
|
352
|
+
kind: 'Name',
|
|
353
|
+
value: 'minBookPrice'
|
|
267
354
|
}
|
|
268
355
|
}
|
|
269
356
|
}],
|
|
@@ -305,13 +392,7 @@ const GetOrderPositionBooksDocument = exports.GetOrderPositionBooksDocument = {
|
|
|
305
392
|
kind: 'Field',
|
|
306
393
|
name: {
|
|
307
394
|
kind: 'Name',
|
|
308
|
-
value: '
|
|
309
|
-
}
|
|
310
|
-
}, {
|
|
311
|
-
kind: 'Field',
|
|
312
|
-
name: {
|
|
313
|
-
kind: 'Name',
|
|
314
|
-
value: 'shortCountPercent'
|
|
395
|
+
value: 'sentiment'
|
|
315
396
|
}
|
|
316
397
|
}]
|
|
317
398
|
}
|
|
@@ -336,14 +417,36 @@ const GetPriceCandlesDocument = exports.GetPriceCandlesDocument = {
|
|
|
336
417
|
kind: 'Variable',
|
|
337
418
|
name: {
|
|
338
419
|
kind: 'Name',
|
|
339
|
-
value: '
|
|
420
|
+
value: 'dataSource'
|
|
340
421
|
}
|
|
341
422
|
},
|
|
342
423
|
type: {
|
|
343
|
-
kind: '
|
|
424
|
+
kind: 'NonNullType',
|
|
425
|
+
type: {
|
|
426
|
+
kind: 'NamedType',
|
|
427
|
+
name: {
|
|
428
|
+
kind: 'Name',
|
|
429
|
+
value: 'DataSource'
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}, {
|
|
434
|
+
kind: 'VariableDefinition',
|
|
435
|
+
variable: {
|
|
436
|
+
kind: 'Variable',
|
|
344
437
|
name: {
|
|
345
438
|
kind: 'Name',
|
|
346
|
-
value: '
|
|
439
|
+
value: 'division'
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
type: {
|
|
443
|
+
kind: 'NonNullType',
|
|
444
|
+
type: {
|
|
445
|
+
kind: 'NamedType',
|
|
446
|
+
name: {
|
|
447
|
+
kind: 'Name',
|
|
448
|
+
value: 'Division'
|
|
449
|
+
}
|
|
347
450
|
}
|
|
348
451
|
}
|
|
349
452
|
}, {
|
|
@@ -410,9 +513,22 @@ const GetPriceCandlesDocument = exports.GetPriceCandlesDocument = {
|
|
|
410
513
|
kind: 'Field',
|
|
411
514
|
name: {
|
|
412
515
|
kind: 'Name',
|
|
413
|
-
value: '
|
|
516
|
+
value: 'priceCandles'
|
|
414
517
|
},
|
|
415
518
|
arguments: [{
|
|
519
|
+
kind: 'Argument',
|
|
520
|
+
name: {
|
|
521
|
+
kind: 'Name',
|
|
522
|
+
value: 'dataSource'
|
|
523
|
+
},
|
|
524
|
+
value: {
|
|
525
|
+
kind: 'Variable',
|
|
526
|
+
name: {
|
|
527
|
+
kind: 'Name',
|
|
528
|
+
value: 'dataSource'
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}, {
|
|
416
532
|
kind: 'Argument',
|
|
417
533
|
name: {
|
|
418
534
|
kind: 'Name',
|
|
@@ -468,18 +584,6 @@ const GetPriceCandlesDocument = exports.GetPriceCandlesDocument = {
|
|
|
468
584
|
selectionSet: {
|
|
469
585
|
kind: 'SelectionSet',
|
|
470
586
|
selections: [{
|
|
471
|
-
kind: 'Field',
|
|
472
|
-
name: {
|
|
473
|
-
kind: 'Name',
|
|
474
|
-
value: 'time'
|
|
475
|
-
}
|
|
476
|
-
}, {
|
|
477
|
-
kind: 'Field',
|
|
478
|
-
name: {
|
|
479
|
-
kind: 'Name',
|
|
480
|
-
value: 'unixTime'
|
|
481
|
-
}
|
|
482
|
-
}, {
|
|
483
587
|
kind: 'Field',
|
|
484
588
|
name: {
|
|
485
589
|
kind: 'Name',
|
|
@@ -488,6 +592,12 @@ const GetPriceCandlesDocument = exports.GetPriceCandlesDocument = {
|
|
|
488
592
|
selectionSet: {
|
|
489
593
|
kind: 'SelectionSet',
|
|
490
594
|
selections: [{
|
|
595
|
+
kind: 'Field',
|
|
596
|
+
name: {
|
|
597
|
+
kind: 'Name',
|
|
598
|
+
value: 'point'
|
|
599
|
+
}
|
|
600
|
+
}, {
|
|
491
601
|
kind: 'Field',
|
|
492
602
|
name: {
|
|
493
603
|
kind: 'Name',
|
|
@@ -513,115 +623,6 @@ const GetPriceCandlesDocument = exports.GetPriceCandlesDocument = {
|
|
|
513
623
|
}
|
|
514
624
|
}]
|
|
515
625
|
}
|
|
516
|
-
}, {
|
|
517
|
-
kind: 'Field',
|
|
518
|
-
name: {
|
|
519
|
-
kind: 'Name',
|
|
520
|
-
value: 'timeSpan'
|
|
521
|
-
}
|
|
522
|
-
}]
|
|
523
|
-
}
|
|
524
|
-
}]
|
|
525
|
-
}
|
|
526
|
-
}]
|
|
527
|
-
};
|
|
528
|
-
const ValidateInstrumentsDocument = exports.ValidateInstrumentsDocument = {
|
|
529
|
-
kind: 'Document',
|
|
530
|
-
definitions: [{
|
|
531
|
-
kind: 'OperationDefinition',
|
|
532
|
-
operation: 'query',
|
|
533
|
-
name: {
|
|
534
|
-
kind: 'Name',
|
|
535
|
-
value: 'validateInstruments'
|
|
536
|
-
},
|
|
537
|
-
variableDefinitions: [{
|
|
538
|
-
kind: 'VariableDefinition',
|
|
539
|
-
variable: {
|
|
540
|
-
kind: 'Variable',
|
|
541
|
-
name: {
|
|
542
|
-
kind: 'Name',
|
|
543
|
-
value: 'instruments'
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
type: {
|
|
547
|
-
kind: 'NonNullType',
|
|
548
|
-
type: {
|
|
549
|
-
kind: 'ListType',
|
|
550
|
-
type: {
|
|
551
|
-
kind: 'NamedType',
|
|
552
|
-
name: {
|
|
553
|
-
kind: 'Name',
|
|
554
|
-
value: 'String'
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}, {
|
|
560
|
-
kind: 'VariableDefinition',
|
|
561
|
-
variable: {
|
|
562
|
-
kind: 'Variable',
|
|
563
|
-
name: {
|
|
564
|
-
kind: 'Name',
|
|
565
|
-
value: 'division'
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
type: {
|
|
569
|
-
kind: 'NamedType',
|
|
570
|
-
name: {
|
|
571
|
-
kind: 'Name',
|
|
572
|
-
value: 'Division'
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
}],
|
|
576
|
-
selectionSet: {
|
|
577
|
-
kind: 'SelectionSet',
|
|
578
|
-
selections: [{
|
|
579
|
-
kind: 'Field',
|
|
580
|
-
name: {
|
|
581
|
-
kind: 'Name',
|
|
582
|
-
value: 'mapInstrumentNames'
|
|
583
|
-
},
|
|
584
|
-
arguments: [{
|
|
585
|
-
kind: 'Argument',
|
|
586
|
-
name: {
|
|
587
|
-
kind: 'Name',
|
|
588
|
-
value: 'instruments'
|
|
589
|
-
},
|
|
590
|
-
value: {
|
|
591
|
-
kind: 'Variable',
|
|
592
|
-
name: {
|
|
593
|
-
kind: 'Name',
|
|
594
|
-
value: 'instruments'
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
}, {
|
|
598
|
-
kind: 'Argument',
|
|
599
|
-
name: {
|
|
600
|
-
kind: 'Name',
|
|
601
|
-
value: 'division'
|
|
602
|
-
},
|
|
603
|
-
value: {
|
|
604
|
-
kind: 'Variable',
|
|
605
|
-
name: {
|
|
606
|
-
kind: 'Name',
|
|
607
|
-
value: 'division'
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}],
|
|
611
|
-
selectionSet: {
|
|
612
|
-
kind: 'SelectionSet',
|
|
613
|
-
selections: [{
|
|
614
|
-
kind: 'Field',
|
|
615
|
-
name: {
|
|
616
|
-
kind: 'Name',
|
|
617
|
-
value: 'name'
|
|
618
|
-
}
|
|
619
|
-
}, {
|
|
620
|
-
kind: 'Field',
|
|
621
|
-
name: {
|
|
622
|
-
kind: 'Name',
|
|
623
|
-
value: 'displayName'
|
|
624
|
-
}
|
|
625
626
|
}]
|
|
626
627
|
}
|
|
627
628
|
}]
|