diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-18 02:27:38 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:21:42 +0800 |
commit | 57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151 (patch) | |
tree | 68596be050d6f84e3b7e6f51f91d09a542ac3129 /packages/pipeline/src/models/historical_prices.ts | |
parent | c43ba6b3c7082544f8aa8f1c297eb271ca079ea4 (diff) | |
download | dexon-0x-contracts-57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151.tar.gz dexon-0x-contracts-57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151.tar.zst dexon-0x-contracts-57e7119c0d4f1ab7dd1d4c0118e72dc1706e2151.zip |
Rebase pipeline branch off development
Diffstat (limited to 'packages/pipeline/src/models/historical_prices.ts')
-rw-r--r-- | packages/pipeline/src/models/historical_prices.ts | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/pipeline/src/models/historical_prices.ts b/packages/pipeline/src/models/historical_prices.ts new file mode 100644 index 000000000..cf49b579e --- /dev/null +++ b/packages/pipeline/src/models/historical_prices.ts @@ -0,0 +1,43 @@ +const historicalPrices = { + tableName: 'historical_prices', + tableProperties: { + token: { + type: 'varchar', + }, + base: { + type: 'varchar', + }, + timestamp: { + type: 'timestamp', + }, + close: { + type: 'numeric(50)', + }, + high: { + type: 'numeric(50)', + }, + low: { + type: 'numeric(50)', + }, + open: { + type: 'numeric(50)', + }, + volume_from: { + type: 'numeric(50)', + }, + volume_to: { + type: 'numeric(50)', + }, + }, +}; +const logToHistoricalPricesSchema: { [log: string]: string } = { + token: 'token', + time: 'timestamp', + close: 'close', + high: 'high', + low: 'low', + open: 'open', + volumefrom: 'volume_from', + volumeto: 'volume_to', +}; +export { historicalPrices, logToHistoricalPricesSchema }; |