You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Data Streams regular hour feed ID for the underlying asset',
23
+
},
24
+
extendedStreamId: {
25
+
required: true,
26
+
type: 'string',
27
+
description: 'Data Streams extended hour feed ID for the underlying asset',
28
+
},
29
+
overnightStreamId: {
30
+
required: true,
31
+
type: 'string',
32
+
description: 'Data Streams overnight hour feed ID for the underlying asset',
33
+
},
34
+
sessionMarket: {
35
+
required: true,
36
+
type: 'string',
37
+
description:
38
+
'The name of the market for session times, for example nyse. This is passed to the tradinghours adapter as the `market` parameter.',
39
+
},
40
+
sessionMarketType: {
41
+
required: true,
42
+
type: 'string',
43
+
description:
44
+
'The type of the market for session times, for example 24/5. This is passed to the tradinghours adapter as the `type` parameter.',
45
+
},
46
+
sessionBoundaries: {
47
+
required: true,
48
+
type: 'string',
49
+
array: true,
50
+
description:
51
+
'(backup) A list of time where market trasition from 1 session to the next in the format of HH:MM. This is only used when the adapter is unable to fetch session times from the tradinghours EA',
52
+
},
53
+
sessionBoundariesTimeZone: {
54
+
required: true,
55
+
type: 'string',
56
+
description: 'ANA Time Zone Database format',
57
+
},
58
+
smoother: {
59
+
type: 'string',
60
+
description: 'Smoothing algorithm to apply to the price',
@@ -18,70 +19,13 @@ export const inputParameters = new InputParameters(
18
19
type: 'string',
19
20
description: 'Maps to the asset in ondo’s on-chain registry',
20
21
},
21
-
regularStreamId: {
22
-
required: true,
23
-
type: 'string',
24
-
description: 'Data Streams regular hour feed ID for the underlying asset',
25
-
},
26
-
extendedStreamId: {
27
-
required: true,
28
-
type: 'string',
29
-
description: 'Data Streams extended hour feed ID for the underlying asset',
30
-
},
31
-
overnightStreamId: {
32
-
required: true,
33
-
type: 'string',
34
-
description: 'Data Streams overnight hour feed ID for the underlying asset',
35
-
},
36
-
sessionMarket: {
37
-
required: true,
38
-
type: 'string',
39
-
description:
40
-
'The name of the market for session times, for example nyse. This is passed to the tradinghours adapter as the `market` parameter.',
41
-
},
42
-
sessionMarketType: {
43
-
required: true,
44
-
type: 'string',
45
-
description:
46
-
'The type of the market for session times, for example 24/5. This is passed to the tradinghours adapter as the `type` parameter.',
47
-
},
48
-
sessionBoundaries: {
49
-
required: true,
50
-
type: 'string',
51
-
array: true,
52
-
description:
53
-
'(backup) A list of time where market trasition from 1 session to the next in the format of HH:MM. This is only used when the adapter is unable to fetch session times from the tradinghours EA',
54
-
},
55
-
sessionBoundariesTimeZone: {
56
-
required: true,
57
-
type: 'string',
58
-
description: 'ANA Time Zone Database format',
59
-
},
60
-
smoother: {
61
-
type: 'string',
62
-
description: 'Smoothing algorithm to apply to the price',
63
-
options: ['kalman','ema'],
64
-
default: 'kalman',
65
-
},
66
-
decimals: {
67
-
type: 'number',
68
-
description: 'Decimals of output result',
69
-
default: 8,
70
-
},
22
+
...inputDefinition.definition,
71
23
},
72
24
[
73
25
{
74
26
registry: '0x0',
75
27
asset: '0x0',
76
-
regularStreamId: '0x0',
77
-
extendedStreamId: '0x0',
78
-
overnightStreamId: '0x0',
79
-
sessionMarket: 'nyse',
80
-
sessionMarketType: '24/5',
81
-
sessionBoundaries: ['04:00','16:00','20:00'],
82
-
sessionBoundariesTimeZone: 'America/New_York',
83
-
smoother: 'kalman',
84
-
decimals: 8,
28
+
...inputExample,
85
29
},
86
30
],
87
31
)
@@ -90,26 +34,11 @@ export type BaseEndpointTypes = {
90
34
Parameters: typeofinputParameters.definition
91
35
Response: {
92
36
Result: string
93
-
Data: {
94
-
result: string
95
-
rawPrice: string
96
-
decimals: number
37
+
Data: output&{
97
38
registry: {
98
39
sValue: string
99
40
paused: boolean
100
41
}
101
-
stream: {
102
-
regular: DataEngineResponse['Response']['Data']
103
-
extended: DataEngineResponse['Response']['Data']
104
-
overnight: DataEngineResponse['Response']['Data']
105
-
}
106
-
smoother: {
107
-
price: string
108
-
x: string
109
-
p: string
110
-
secondsFromTransition: number
111
-
}
112
-
sessionSource: 'TRADINGHOURS'|'FALLBACK'
113
42
}
114
43
}
115
44
Settings: typeofconfig.settings
@@ -130,26 +59,11 @@ export const endpoint = new AdapterEndpoint({
0 commit comments