@n8n-dev/n8n-nodes-ondo-finance 1.0.0

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.
Files changed (36) hide show
  1. package/README.md +100 -0
  2. package/dist/credentials/OndoFinanceApi.credentials.d.ts +10 -0
  3. package/dist/credentials/OndoFinanceApi.credentials.js +56 -0
  4. package/dist/credentials/OndoFinanceApi.credentials.js.map +1 -0
  5. package/dist/icons/ondo-finance.dark.svg +4 -0
  6. package/dist/icons/ondo-finance.svg +4 -0
  7. package/dist/nodes/OndoFinance/OndoFinance.node.d.ts +4 -0
  8. package/dist/nodes/OndoFinance/OndoFinance.node.js +89 -0
  9. package/dist/nodes/OndoFinance/OndoFinance.node.js.map +1 -0
  10. package/dist/nodes/OndoFinance/OndoFinance.node.json +20 -0
  11. package/dist/nodes/OndoFinance/ondo-finance.dark.svg +4 -0
  12. package/dist/nodes/OndoFinance/ondo-finance.svg +4 -0
  13. package/dist/nodes/OndoFinance/resources/assets/index.d.ts +2 -0
  14. package/dist/nodes/OndoFinance/resources/assets/index.js +701 -0
  15. package/dist/nodes/OndoFinance/resources/assets/index.js.map +1 -0
  16. package/dist/nodes/OndoFinance/resources/attestations/index.d.ts +2 -0
  17. package/dist/nodes/OndoFinance/resources/attestations/index.js +435 -0
  18. package/dist/nodes/OndoFinance/resources/attestations/index.js.map +1 -0
  19. package/dist/nodes/OndoFinance/resources/chains/index.d.ts +2 -0
  20. package/dist/nodes/OndoFinance/resources/chains/index.js +216 -0
  21. package/dist/nodes/OndoFinance/resources/chains/index.js.map +1 -0
  22. package/dist/nodes/OndoFinance/resources/index.d.ts +6 -0
  23. package/dist/nodes/OndoFinance/resources/index.js +16 -0
  24. package/dist/nodes/OndoFinance/resources/index.js.map +1 -0
  25. package/dist/nodes/OndoFinance/resources/limits/index.d.ts +2 -0
  26. package/dist/nodes/OndoFinance/resources/limits/index.js +171 -0
  27. package/dist/nodes/OndoFinance/resources/limits/index.js.map +1 -0
  28. package/dist/nodes/OndoFinance/resources/status/index.d.ts +2 -0
  29. package/dist/nodes/OndoFinance/resources/status/index.js +84 -0
  30. package/dist/nodes/OndoFinance/resources/status/index.js.map +1 -0
  31. package/dist/nodes/OndoFinance/resources/tickers/index.d.ts +2 -0
  32. package/dist/nodes/OndoFinance/resources/tickers/index.js +53 -0
  33. package/dist/nodes/OndoFinance/resources/tickers/index.js.map +1 -0
  34. package/dist/package.json +62 -0
  35. package/dist/tsconfig.tsbuildinfo +1 -0
  36. package/package.json +62 -0
@@ -0,0 +1,216 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chainsDescription = void 0;
4
+ exports.chainsDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Chains"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Get Balances",
20
+ "value": "Get Balances",
21
+ "action": "Get Token Balances for a User or Token",
22
+ "description": "This endpoint retrieves all token balances for a GM Chain. Results can be optionally filtered by `tokenAddress`, `userAddress`, or both parameters together. If no filters are provided, all balances on the chain will be returned.\n\nFor caching details on this endpoint, please see: [Endpoint Caching](https://docs.ondo.finance/api-reference/endpoint-caching).\n",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/v1/chains/{{$parameter[\"chainId\"]}}/balances"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Get Token Info",
32
+ "value": "Get Token Info",
33
+ "action": "Get Token Info",
34
+ "description": "This endpoint retrieves contract information about a token on a GM chain.\n\nFor caching details on this endpoint, please see: [Endpoint Caching](https://docs.ondo.finance/api-reference/endpoint-caching).\n",
35
+ "routing": {
36
+ "request": {
37
+ "method": "GET",
38
+ "url": "=/v1/chains/{{$parameter[\"chainId\"]}}/tokens/{{$parameter[\"tokenAddress\"]}}/info"
39
+ }
40
+ }
41
+ }
42
+ ],
43
+ "default": ""
44
+ },
45
+ {
46
+ "displayName": "GET /v1/chains/{chainId}/balances",
47
+ "name": "operation",
48
+ "type": "notice",
49
+ "typeOptions": {
50
+ "theme": "info"
51
+ },
52
+ "default": "",
53
+ "displayOptions": {
54
+ "show": {
55
+ "resource": [
56
+ "Chains"
57
+ ],
58
+ "operation": [
59
+ "Get Balances"
60
+ ]
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "displayName": "Chain Id",
66
+ "name": "chainId",
67
+ "required": true,
68
+ "description": "The chain's identifier including the chain name and chain id.",
69
+ "default": "ethereum-1",
70
+ "type": "options",
71
+ "options": [
72
+ {
73
+ "name": "Ethereum 1",
74
+ "value": "ethereum-1"
75
+ },
76
+ {
77
+ "name": "Bsc 56",
78
+ "value": "bsc-56"
79
+ },
80
+ {
81
+ "name": "Solana 900",
82
+ "value": "solana-900"
83
+ }
84
+ ],
85
+ "displayOptions": {
86
+ "show": {
87
+ "resource": [
88
+ "Chains"
89
+ ],
90
+ "operation": [
91
+ "Get Balances"
92
+ ]
93
+ }
94
+ }
95
+ },
96
+ {
97
+ "displayName": "Token Address",
98
+ "name": "tokenAddress",
99
+ "description": "Filter by a token contract address (optional).",
100
+ "default": "",
101
+ "type": "string",
102
+ "routing": {
103
+ "send": {
104
+ "type": "query",
105
+ "property": "tokenAddress",
106
+ "value": "={{ $value }}",
107
+ "propertyInDotNotation": false
108
+ }
109
+ },
110
+ "displayOptions": {
111
+ "show": {
112
+ "resource": [
113
+ "Chains"
114
+ ],
115
+ "operation": [
116
+ "Get Balances"
117
+ ]
118
+ }
119
+ }
120
+ },
121
+ {
122
+ "displayName": "User Address",
123
+ "name": "userAddress",
124
+ "description": "Filter by a user wallet address (optional).",
125
+ "default": "",
126
+ "type": "string",
127
+ "routing": {
128
+ "send": {
129
+ "type": "query",
130
+ "property": "userAddress",
131
+ "value": "={{ $value }}",
132
+ "propertyInDotNotation": false
133
+ }
134
+ },
135
+ "displayOptions": {
136
+ "show": {
137
+ "resource": [
138
+ "Chains"
139
+ ],
140
+ "operation": [
141
+ "Get Balances"
142
+ ]
143
+ }
144
+ }
145
+ },
146
+ {
147
+ "displayName": "GET /v1/chains/{chainId}/tokens/{tokenAddress}/info",
148
+ "name": "operation",
149
+ "type": "notice",
150
+ "typeOptions": {
151
+ "theme": "info"
152
+ },
153
+ "default": "",
154
+ "displayOptions": {
155
+ "show": {
156
+ "resource": [
157
+ "Chains"
158
+ ],
159
+ "operation": [
160
+ "Get Token Info"
161
+ ]
162
+ }
163
+ }
164
+ },
165
+ {
166
+ "displayName": "Chain Id",
167
+ "name": "chainId",
168
+ "required": true,
169
+ "description": "The chain's identifier including the chain name and chain id.",
170
+ "default": "ethereum-1",
171
+ "type": "options",
172
+ "options": [
173
+ {
174
+ "name": "Ethereum 1",
175
+ "value": "ethereum-1"
176
+ },
177
+ {
178
+ "name": "Bsc 56",
179
+ "value": "bsc-56"
180
+ },
181
+ {
182
+ "name": "Solana 900",
183
+ "value": "solana-900"
184
+ }
185
+ ],
186
+ "displayOptions": {
187
+ "show": {
188
+ "resource": [
189
+ "Chains"
190
+ ],
191
+ "operation": [
192
+ "Get Token Info"
193
+ ]
194
+ }
195
+ }
196
+ },
197
+ {
198
+ "displayName": "Token Address",
199
+ "name": "tokenAddress",
200
+ "required": true,
201
+ "description": "The token contract address",
202
+ "default": "0x14c3abF95Cb9C93a8b82C1CdCB76D72Cb87b2d4c",
203
+ "type": "string",
204
+ "displayOptions": {
205
+ "show": {
206
+ "resource": [
207
+ "Chains"
208
+ ],
209
+ "operation": [
210
+ "Get Token Info"
211
+ ]
212
+ }
213
+ }
214
+ },
215
+ ];
216
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/OndoFinance/resources/chains/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IAClD;QACC,aAAa,EAAE,WAAW;QAC1B,MAAM,EA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AChB;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,UAAU;QACzB,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,+DAA+D;QAC9E,SAAS,EAAE,YAAY;QACvB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE;YACV;gBACC,MAAM,EAAE,YAAY;gBACpB,OAAO,EAAE,YAAY;aACrB;YACD;gBACC,MAAM,EAAE,QAAQ;gBAChB,OAAO,EAAE,QAAQ;aACjB;YACD;gBACC,MAAM,EAAE,YAAY;gBACpB,OAAO,EAAE,YAAY;aACrB;SACD;QACD,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;gBACD,WAAW,EAAE;oBACZ,gBAAgB;iBAChB;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,eAAe;QAC9B,MAAM,EAAE,cAAc;QACtB,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,4BAA4B;QAC3C,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,QAAQ;QAChB,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;gBACD,WAAW,EAAE;oBACZ,gBAAgB;iBAChB;aACD;SACD;KACD;CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { attestationsDescription } from './attestations';
2
+ export { assetsDescription } from './assets';
3
+ export { tickersDescription } from './tickers';
4
+ export { chainsDescription } from './chains';
5
+ export { limitsDescription } from './limits';
6
+ export { statusDescription } from './status';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.statusDescription = exports.limitsDescription = exports.chainsDescription = exports.tickersDescription = exports.assetsDescription = exports.attestationsDescription = void 0;
4
+ var attestations_1 = require("./attestations");
5
+ Object.defineProperty(exports, "attestationsDescription", { enumerable: true, get: function () { return attestations_1.attestationsDescription; } });
6
+ var assets_1 = require("./assets");
7
+ Object.defineProperty(exports, "assetsDescription", { enumerable: true, get: function () { return assets_1.assetsDescription; } });
8
+ var tickers_1 = require("./tickers");
9
+ Object.defineProperty(exports, "tickersDescription", { enumerable: true, get: function () { return tickers_1.tickersDescription; } });
10
+ var chains_1 = require("./chains");
11
+ Object.defineProperty(exports, "chainsDescription", { enumerable: true, get: function () { return chains_1.chainsDescription; } });
12
+ var limits_1 = require("./limits");
13
+ Object.defineProperty(exports, "limitsDescription", { enumerable: true, get: function () { return limits_1.limitsDescription; } });
14
+ var status_1 = require("./status");
15
+ Object.defineProperty(exports, "statusDescription", { enumerable: true, get: function () { return status_1.statusDescription; } });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/OndoFinance/resources/index.ts"],"names":[],"mappings":";;;AAAA,+CAAyD;AAAhD,uHAAA,uBAAuB,OAAA;AAChC,mCAA6C;AAApC,2GAAA,iBAAiB,OAAA;AAC1B,qCAA+C;AAAtC,6GAAA,kBAAkB,OAAA;AAC3B,mCAA6C;AAApC,2GAAA,iBAAiB,OAAA;AAC1B,mCAA6C;AAApC,2GAAA,iBAAiB,OAAA;AAC1B,mCAA6C;AAApC,2GAAA,iBAAiB,OAAA"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const limitsDescription: INodeProperties[];
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.limitsDescription = void 0;
4
+ exports.limitsDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Limits"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Get Trading Limits",
20
+ "value": "Get Trading Limits",
21
+ "action": "Get Trading Limits",
22
+ "description": "Provides real-time trading limits based on global, user, and asset-specific exposure limits.\n\nLimits:\n- The \"Max Notional Value\" limit is based on the dollar value of outstanding attestations. That is, if a user has a limit of \\$1,000,000, and has 30 non-expired, non-filled attestations at a value of \\$999,000, they will not be able to request another attestation for \\$1000.\n- The \"Remaining Attestations\" limits the number of non-expired, non-executed attestations. For example if the limit is 50, and a user has 50 outstanding attestations, they must wait for one to execute or expire before requesting another.\n\nIf the market is closed or paused, the response will indicate that trading is not allowed and provide the reason. For more information on market hours, see the `/v1/status/market` endpoint.\n\n**Trading Limits Reason Codes**\n\nWhen trading is not allowed, the response will include a `reason` field which may include one of the following common codes:\n- `MARKET_CLOSED`: Market is closed.\n- `MARKET_PAUSED`: Market is temporarily paused.\n- `ASSET_PAUSED`: Specific asset is paused.\n- `ASSET_CLOSED_FOR_SESSION`: The asset is not tradable in this session (e.g., not available overnight; see [Get Market Data](https://docs.ondo.finance/api-reference/assets/get-market-data-for-all-supported-assets))\n- `ASSET_LIMITED`: Asset can be traded, but order size is more limited than usual.\n- `MAX_LIMIT_REACHED`: Maximum limit has been reached.\n- `MAX_ATTESTATIONS`: Maximum attestations reached.\n\nFor caching details on this endpoint, please see: [Endpoint Caching](https://docs.ondo.finance/api-reference/endpoint-caching).\n",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/v1/limits/trading"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Get Session Limits",
32
+ "value": "Get Session Limits",
33
+ "action": "Get Session Limits",
34
+ "description": "Provides theoretical maximum asset-specific trading limits for each trading session. These limits are per-user, not global. This API reflects Ondo's statically defined limits; for dynamic, real-time values, see [Get Trading Limits](https://docs.ondo.finance/api-reference/limits/get-trading-limits))\n\nLimits:\n- The \"Max Attestation Count\" limits the number of non-expired, non-executed attestations. For example if the limit is 50, and a user has 50 outstanding attestations, they must wait for one to execute or expire before requesting another.\n- The \"Max Active Notional Value\" limit is based on the dollar value of outstanding attestations. That is, if a user has a limit of \\$1,000,000, and has 30 non-expired, non-filled attestations at a value of \\$999,000, they will not be able to request another attestation for \\$1000.\n\nFor caching details on this endpoint, please see: [Endpoint Caching](https://docs.ondo.finance/api-reference/endpoint-caching).\n",
35
+ "routing": {
36
+ "request": {
37
+ "method": "GET",
38
+ "url": "=/v1/limits/session"
39
+ }
40
+ }
41
+ }
42
+ ],
43
+ "default": ""
44
+ },
45
+ {
46
+ "displayName": "GET /v1/limits/trading",
47
+ "name": "operation",
48
+ "type": "notice",
49
+ "typeOptions": {
50
+ "theme": "info"
51
+ },
52
+ "default": "",
53
+ "displayOptions": {
54
+ "show": {
55
+ "resource": [
56
+ "Limits"
57
+ ],
58
+ "operation": [
59
+ "Get Trading Limits"
60
+ ]
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "displayName": "Symbol",
66
+ "name": "symbol",
67
+ "required": true,
68
+ "description": "The GM token symbol.",
69
+ "default": "AAPLon",
70
+ "type": "string",
71
+ "routing": {
72
+ "send": {
73
+ "type": "query",
74
+ "property": "symbol",
75
+ "value": "={{ $value }}",
76
+ "propertyInDotNotation": false
77
+ }
78
+ },
79
+ "displayOptions": {
80
+ "show": {
81
+ "resource": [
82
+ "Limits"
83
+ ],
84
+ "operation": [
85
+ "Get Trading Limits"
86
+ ]
87
+ }
88
+ }
89
+ },
90
+ {
91
+ "displayName": "Side",
92
+ "name": "side",
93
+ "required": true,
94
+ "description": "The trade side",
95
+ "default": "buy",
96
+ "type": "options",
97
+ "options": [
98
+ {
99
+ "name": "Buy",
100
+ "value": "buy"
101
+ },
102
+ {
103
+ "name": "Sell",
104
+ "value": "sell"
105
+ }
106
+ ],
107
+ "routing": {
108
+ "send": {
109
+ "type": "query",
110
+ "property": "side",
111
+ "value": "={{ $value }}",
112
+ "propertyInDotNotation": false
113
+ }
114
+ },
115
+ "displayOptions": {
116
+ "show": {
117
+ "resource": [
118
+ "Limits"
119
+ ],
120
+ "operation": [
121
+ "Get Trading Limits"
122
+ ]
123
+ }
124
+ }
125
+ },
126
+ {
127
+ "displayName": "GET /v1/limits/session",
128
+ "name": "operation",
129
+ "type": "notice",
130
+ "typeOptions": {
131
+ "theme": "info"
132
+ },
133
+ "default": "",
134
+ "displayOptions": {
135
+ "show": {
136
+ "resource": [
137
+ "Limits"
138
+ ],
139
+ "operation": [
140
+ "Get Session Limits"
141
+ ]
142
+ }
143
+ }
144
+ },
145
+ {
146
+ "displayName": "Symbol",
147
+ "name": "symbol",
148
+ "description": "The GM token symbol.",
149
+ "default": "AAPLon",
150
+ "type": "string",
151
+ "routing": {
152
+ "send": {
153
+ "type": "query",
154
+ "property": "symbol",
155
+ "value": "={{ $value }}",
156
+ "propertyInDotNotation": false
157
+ }
158
+ },
159
+ "displayOptions": {
160
+ "show": {
161
+ "resource": [
162
+ "Limits"
163
+ ],
164
+ "operation": [
165
+ "Get Session Limits"
166
+ ]
167
+ }
168
+ }
169
+ },
170
+ ];
171
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/OndoFinance/resources/limits/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IAClD;QACC,aAAa,EAAE,WAAW;QAC1B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,SAAS;QACjB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;aACD;SACD;QACD,SAAS,EAAE;YACV;gBACC,MAAM,EAAE,oBAAoB;gBAC5B,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,oBAAoB;gBAC9B,aAAa,EAAE,6nDAA6nD;gBAC5oD,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,KAAK;wBACf,KAAK,EAAE,qBAAqB;qBAC5B;iBACD;aACD;YACD;gBACC,MAAM,EAAE,oBAAoB;gBAC5B,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,oBAAoB;gBAC9B,aAAa,EAAE,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AM;gBAClB,OAAO,EAAE,eAAe;gBACxB,uBAAuB,EAAE,KAAK;aAC9B;SACD;QACD,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;gBACD,WAAW,EAAE;oBACZ,oBAAoB;iBACpB;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,wBAAwB;QACvC,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE;YACd,OAAO,EAAE,MAAM;SACf;QACD,SAAS,EAAE,EAAE;QACb,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;gBACD,WAAW,EAAE;oBACZ,oBAAoB;iBACpB;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,QAAQ;QACvB,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE,sBAAsB;QACrC,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE;YACV,MAAM,EAAE;gBACP,MAAM,EAAE,OAAO;gBACf,UAAU,EAAE,QAAQ;gBACpB,OAAO,EAAE,eAAe;gBACxB,uBAAuB,EAAE,KAAK;aAC9B;SACD;QACD,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;gBACD,WAAW,EAAE;oBACZ,oBAAoB;iBACpB;aACD;SACD;KACD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const statusDescription: INodeProperties[];
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.statusDescription = void 0;
4
+ exports.statusDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Status"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Get Market Status",
20
+ "value": "Get Market Status",
21
+ "action": "Get Current Market Status",
22
+ "description": "This endpoint retrieves the current status of the market, including whether it is open or closed, and any relevant information about trading pauses or restrictions. When the market is not open, the response provides details about the closure reason and expected reopening time.\n\n**Typical Market Sessions**\n\nThe following table outlines the standard market sessions with brief transitional pauses between each session period.\n\n| **Session** | **Start Time** | **End Time** |\n|:-----------------|:---------------:|:--------------:|\n| Pause | 3:55 AM ET | 4:01 AM ET |\n| **Premarket** | **4:01 AM ET** | **9:29 AM ET** |\n| Pause | 9:29 AM ET | 9:31 AM ET |\n| **Regular** | **9:31 AM ET** | **3:59 PM ET** |\n| Pause | 3:59 PM ET | 4:01 PM ET |\n| **Postmarket** | **4:01 PM ET** | **7:59 PM ET** |\n| Pause | 7:59 PM ET | 8:05 PM ET |\n| **Overnight** | **8:05 PM ET** | **3:55 AM ET** |\n\n**Typical Holidays**\n\nGM observes the same holiday schedule as the [New York Stock Exchange](https://www.nyse.com/markets/hours-calendars). This includes early closes and observed holidays.\n\n**Unscheduled Downtime**\n\nIn the case of unscheduled downtime, trading may be paused without prior notice. This includes unexpected outages or maintenance events that impact GM's functionality.\n\n**Market Status Reason Codes**\n\nWhen the market is not open, the response will include a `reason` field which may include one of the following common codes:\n- `MARKET_CLOSED`: Market is closed.\n- `MARKET_PAUSED`: Market is temporarily paused.\n\n**Asset Tradability**\nThis endpoint only returns market-wide closures. For per-asset tradability, use the following endpoints:\n * Individual assets may pause for dividends and other events, as indicated by `/v1/status/assets`. (See [Get Asset Statuses](https://docs.ondo.finance/api-reference/status/get-asset-statuses))\n * Certain assets do not trade during the overnight and pre/postmarket session, as indicated by `/v1/assets/{symbol}/market`. (See [Get Market Data for an Asset](https://docs.ondo.finance/api-reference/assets/get-market-data-for-an-asset) / [Get Market Data for All Supported Assets](https://docs.ondo.finance/api-reference/assets/get-market-data-for-all-supported-assets))\n\n\nFor caching details on this endpoint, please see: [Endpoint Caching](https://docs.ondo.finance/api-reference/endpoint-caching).\n",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/v1/status/market"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Get Asset Status",
32
+ "value": "Get Asset Status",
33
+ "action": "Get Asset Statuses",
34
+ "description": "This endpoint retrieves information about individual asset trading statuses, including the reason and expected duration. Asset trading can be affected for various reasons such as earnings announcements, dividend events, and global market closures.\n\n**Important**:\n * When the entire market is closed or paused as indicated by `/v1/status/market`, all asset trading is automatically suspended regardless of individual asset status. (See [Get Current Market Status](https://docs.ondo.finance/api-reference/status/get-current-market-status))\n * Certain assets do not trade during the overnight and pre/postmarket session, as indicated by `/v1/assets/{symbol}/market`. (See [Get Market Data for an Asset](https://docs.ondo.finance/api-reference/assets/get-market-data-for-an-asset) / [Get Market Data for All Supported Assets](https://docs.ondo.finance/api-reference/assets/get-market-data-for-all-supported-assets)) \n\n This endpoint should be used in conjunction with the [Market Status](https://docs.ondo.finance/api-reference/status/get-current-market-status) and [Market Data](https://docs.ondo.finance/api-reference/assets/get-market-data-for-an-asset) endpoints to get a complete picture of trading availability.\n\n**Market Sessions and Holidays**\n\nAsset trading follows the same schedule as outlined in the `/v1/status/market` endpoint. During market closures, holidays, or unscheduled downtime, all assets are unavailable for trading.\n\n**Earnings and Dividends**\n\nIndividual assets may be temporarily suspended or limited during earnings announcements and dividend events according to the following schedule:\n- **Dividends**: Trading is paused from 7:50 PM to 8:10 PM ET on the day before the dividend ex-date.\n- **Earnings**: Trading is limited for certain assets around earnings announcements, with timing dependent on the announcement schedule. \"Limited\" here means that the quantity which can be minted in one request is reduced. For exact limits, see [Get Trading Limits](https://docs.ondo.finance/api-reference/limits/get-trading-limits). For pre-market announcements, trading is suspended from 5:00 AM to 9:31 AM ET. For post-market announcements, trading is suspended from 4:00 PM to 7:30 PM ET. Trading may resume earlier at the platform's discretion.\n- **Other corporate actions**: Trading is paused for an indeterminate amount of time as needed for Ondo to process the corporate action.\n\n**Asset Status Reason Codes**\n\n`reason.code` is one of:\n- `ASSET_PAUSED`: Asset is paused for trading.\n- `ASSET_LIMITED`: Asset can be traded, but order size is more limited than usual.\n\n**Asset Status Reason Messages**\n\n`reason.message` is one of:\n- `cash_dividend`\n- `stock_dividend`\n- `stock_split`\n- `merger`\n- `acquisition`\n- `spinoff`\n- `earnings`\n- `maintenance`\n\nFor caching details on this endpoint, please see: [Endpoint Caching](https://docs.ondo.finance/api-reference/endpoint-caching).\n",
35
+ "routing": {
36
+ "request": {
37
+ "method": "GET",
38
+ "url": "=/v1/status/assets"
39
+ }
40
+ }
41
+ }
42
+ ],
43
+ "default": ""
44
+ },
45
+ {
46
+ "displayName": "GET /v1/status/market",
47
+ "name": "operation",
48
+ "type": "notice",
49
+ "typeOptions": {
50
+ "theme": "info"
51
+ },
52
+ "default": "",
53
+ "displayOptions": {
54
+ "show": {
55
+ "resource": [
56
+ "Status"
57
+ ],
58
+ "operation": [
59
+ "Get Market Status"
60
+ ]
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "displayName": "GET /v1/status/assets",
66
+ "name": "operation",
67
+ "type": "notice",
68
+ "typeOptions": {
69
+ "theme": "info"
70
+ },
71
+ "default": "",
72
+ "displayOptions": {
73
+ "show": {
74
+ "resource": [
75
+ "Status"
76
+ ],
77
+ "operation": [
78
+ "Get Asset Status"
79
+ ]
80
+ }
81
+ }
82
+ },
83
+ ];
84
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/OndoFinance/resources/status/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IAClD;QACC,aAAa,EAAE,WAAW;QAC1B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,SAAS;QACjB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;aACD;SACD;QACD,SAAS,EAAE;YACV;gBACC,MAAM,EAAE,mBAAmB;gBAC3B,OAAO,EAAE,mBAAmB;gBAC5B,QAAQ,EAAE,2BAA2B;gBACrC,aAAa,EAAE,q7EAAq7E;gBACp8E,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,KAAK;wBACf,KAAK,EAAE,oBAAoB;qBAC3B;iBACD;aACD;YACD;gBACC,MAAM,EAAE,kBAAkB;gBAC1B,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,oBAAoB;gBAC9B,aAAa,EAAE,i4FAAi4F;gBACh5F,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,KAAK;wBACf,KAAK,EAAE,oBAAoB;qBAC3B;iBACD;aACD;SACD;QACD,SAAS,EAAE,EAAE;KACb;IACD;QACC,aAAa,EAAE,uBAAuB;QACtC,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE;YACd,OAAO,EAAE,MAAM;SACf;QACD,SAAS,EAAE,EAAE;QACb,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;gBACD,WAAW,EAAE;oBACZ,mBAAmB;iBACnB;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,uBAAuB;QACtC,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE;YACd,OAAO,EAAE,MAAM;SACf;QACD,SAAS,EAAE,EAAE;QACb,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;gBACD,WAAW,EAAE;oBACZ,kBAAkB;iBAClB;aACD;SACD;KACD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const tickersDescription: INodeProperties[];
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tickersDescription = void 0;
4
+ exports.tickersDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Tickers"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Get All Tickers",
20
+ "value": "Get All Tickers",
21
+ "action": "Get Price and Volume Data for All Supported Tickers",
22
+ "description": "This endpoint retrieves the latest price and volume data for all supported tickers. A ticker represents a specific asset in the market.\n\nFor caching details on this endpoint, please see: [Endpoint Caching](https://docs.ondo.finance/api-reference/endpoint-caching).\n",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/v1/tickers"
27
+ }
28
+ }
29
+ }
30
+ ],
31
+ "default": ""
32
+ },
33
+ {
34
+ "displayName": "GET /v1/tickers",
35
+ "name": "operation",
36
+ "type": "notice",
37
+ "typeOptions": {
38
+ "theme": "info"
39
+ },
40
+ "default": "",
41
+ "displayOptions": {
42
+ "show": {
43
+ "resource": [
44
+ "Tickers"
45
+ ],
46
+ "operation": [
47
+ "Get All Tickers"
48
+ ]
49
+ }
50
+ }
51
+ },
52
+ ];
53
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/OndoFinance/resources/tickers/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACnD;QACC,aAAa,EAAE,WAAW;QAC1B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,SAAS;QACjB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,SAAS;iBACT;aACD;SACD;QACD,SAAS,EAAE;YACV;gBACC,MAAM,EAAE,iBAAiB;gBACzB,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,qDAAqD;gBAC/D,aAAa,EAAE,8QAA8Q;gBAC7R,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,KAAK;wBACf,KAAK,EAAE,cAAc;qBACrB;iBACD;aACD;SACD;QACD,SAAS,EAAE,EAAE;KACb;IACD;QACC,aAAa,EAAE,iBAAiB;QAChC,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE;YACd,OAAO,EAAE,MAAM;SACf;QACD,SAAS,EAAE,EAAE;QACb,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,SAAS;iBACT;gBACD,WAAW,EAAE;oBACZ,iBAAiB;iBACjB;aACD;SACD;KACD;CACF,CAAC"}
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@n8n-dev/n8n-nodes-ondo-finance",
3
+ "version": "1.0.0",
4
+ "description": "Ondo Finance institutional-grade tokenized real-world assets platform bridging traditional finance and DeFi protocols",
5
+ "license": "MIT",
6
+ "homepage": "https://n8n-code.github.io/n8n-dev/#/n8n-nodes-ondo-finance",
7
+ "keywords": [
8
+ "n8n",
9
+ "n8n-community-node",
10
+ "n8n-node",
11
+ "n8n-community-node-package",
12
+ "openapi",
13
+ "swagger",
14
+ "api",
15
+ "automation",
16
+ "workflow",
17
+ "ondo-finance"
18
+ ],
19
+ "author": {
20
+ "name": "kelvinzer0",
21
+ "email": ""
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/n8n-code/n8n-nodes-ondo-finance.git"
26
+ },
27
+ "scripts": {
28
+ "build": "n8n-node build",
29
+ "build:watch": "tsc --watch",
30
+ "dev": "n8n-node dev",
31
+ "lint": "n8n-node lint",
32
+ "lint:fix": "n8n-node lint --fix",
33
+ "release": "n8n-node release",
34
+ "prepublishOnly": "npm run build"
35
+ },
36
+ "files": [
37
+ "dist"
38
+ ],
39
+ "n8n": {
40
+ "n8nNodesApiVersion": 1,
41
+ "strict": true,
42
+ "credentials": [
43
+ "dist/credentials/OndoFinanceApi.credentials.js"
44
+ ],
45
+ "nodes": [
46
+ "dist/nodes/OndoFinance/OndoFinance.node.js"
47
+ ]
48
+ },
49
+ "dependencies": {
50
+ "n8n-workflow": "*"
51
+ },
52
+ "devDependencies": {
53
+ "@n8n/node-cli": "*",
54
+ "eslint": "*",
55
+ "prettier": "3.8.3",
56
+ "release-it": "20.2.0",
57
+ "typescript": "5.9.3"
58
+ },
59
+ "peerDependencies": {
60
+ "n8n-workflow": "*"
61
+ }
62
+ }