From 28b364fe32c5e0b31d6413f86089b9e5afc2e06e Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Thu, 30 Jun 2022 13:39:38 +0300 Subject: [PATCH 1/3] Add orders metadata to csv --- workers/loc.api/generate-csv/csv.job.data.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workers/loc.api/generate-csv/csv.job.data.js b/workers/loc.api/generate-csv/csv.job.data.js index e381cc5e..d015e874 100644 --- a/workers/loc.api/generate-csv/csv.job.data.js +++ b/workers/loc.api/generate-csv/csv.job.data.js @@ -654,7 +654,8 @@ class CsvJobData { priceTrailing: 'TRAILING PRICE', mtsCreate: 'CREATED', mtsUpdate: 'UPDATED', - status: 'STATUS' + status: 'STATUS', + meta: 'METADATA' }, formatSettings: { mtsUpdate: 'date', From 2649523def093d93cd4f4f769ef203bebeee30a5 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Thu, 30 Jun 2022 13:40:37 +0300 Subject: [PATCH 2/3] Add orders metadata to mock data --- test/helpers/mock-data.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/helpers/mock-data.js b/test/helpers/mock-data.js index 0c9f215a..24884da3 100644 --- a/test/helpers/mock-data.js +++ b/test/helpers/mock-data.js @@ -305,7 +305,13 @@ module.exports = new Map([ null, false, null, - null + null, + null, + null, + 'BFX', + null, + null, + { _$F7: 1 } ]] ], [ From 9c5497d8211762671fa0e064068e971704bf1693 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Thu, 30 Jun 2022 13:40:57 +0300 Subject: [PATCH 3/3] Add orders metadata to test case --- test/1-api.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/1-api.spec.js b/test/1-api.spec.js index 7310393b..e16c3e77 100644 --- a/test/1-api.spec.js +++ b/test/1-api.spec.js @@ -1356,7 +1356,9 @@ describe('API', () => { 'priceAuxLimit', 'notify', 'placedId', - 'amountExecuted' + 'amountExecuted', + 'routing', + 'meta' ]) })