@n8njimmy/n8n-nodes-binance 0.0.1

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 (181) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +26 -0
  3. package/dist/credentials/BinanceApi.credentials.d.ts +6 -0
  4. package/dist/credentials/BinanceApi.credentials.js +31 -0
  5. package/dist/credentials/BinanceApi.credentials.js.map +1 -0
  6. package/dist/nodes/Binance/Binance.node.d.ts +10 -0
  7. package/dist/nodes/Binance/Binance.node.js +31 -0
  8. package/dist/nodes/Binance/Binance.node.js.map +1 -0
  9. package/dist/nodes/Binance/Binance.node.json +10 -0
  10. package/dist/nodes/Binance/Binance.svg +14 -0
  11. package/dist/nodes/Binance/BinanceTrigger.node.d.ts +10 -0
  12. package/dist/nodes/Binance/BinanceTrigger.node.js +31 -0
  13. package/dist/nodes/Binance/BinanceTrigger.node.js.map +1 -0
  14. package/dist/nodes/Binance/actions/binance.execute.d.ts +3 -0
  15. package/dist/nodes/Binance/actions/binance.execute.js +63 -0
  16. package/dist/nodes/Binance/actions/binance.execute.js.map +1 -0
  17. package/dist/nodes/Binance/actions/binance.properties.d.ts +2 -0
  18. package/dist/nodes/Binance/actions/binance.properties.js +60 -0
  19. package/dist/nodes/Binance/actions/binance.properties.js.map +1 -0
  20. package/dist/nodes/Binance/actions/custom/custom.execute.d.ts +3 -0
  21. package/dist/nodes/Binance/actions/custom/custom.execute.js +38 -0
  22. package/dist/nodes/Binance/actions/custom/custom.execute.js.map +1 -0
  23. package/dist/nodes/Binance/actions/custom/custom.properties.d.ts +2 -0
  24. package/dist/nodes/Binance/actions/custom/custom.properties.js +51 -0
  25. package/dist/nodes/Binance/actions/custom/custom.properties.js.map +1 -0
  26. package/dist/nodes/Binance/actions/custom/function/function.execute.d.ts +3 -0
  27. package/dist/nodes/Binance/actions/custom/function/function.execute.js +18 -0
  28. package/dist/nodes/Binance/actions/custom/function/function.execute.js.map +1 -0
  29. package/dist/nodes/Binance/actions/custom/function/function.properties.d.ts +2 -0
  30. package/dist/nodes/Binance/actions/custom/function/function.properties.js +33 -0
  31. package/dist/nodes/Binance/actions/custom/function/function.properties.js.map +1 -0
  32. package/dist/nodes/Binance/actions/custom/function/index.d.ts +2 -0
  33. package/dist/nodes/Binance/actions/custom/function/index.js +19 -0
  34. package/dist/nodes/Binance/actions/custom/function/index.js.map +1 -0
  35. package/dist/nodes/Binance/actions/custom/index.d.ts +2 -0
  36. package/dist/nodes/Binance/actions/custom/index.js +19 -0
  37. package/dist/nodes/Binance/actions/custom/index.js.map +1 -0
  38. package/dist/nodes/Binance/actions/future/account/execute.d.ts +3 -0
  39. package/dist/nodes/Binance/actions/future/account/execute.js +15 -0
  40. package/dist/nodes/Binance/actions/future/account/execute.js.map +1 -0
  41. package/dist/nodes/Binance/actions/future/account/index.d.ts +2 -0
  42. package/dist/nodes/Binance/actions/future/account/index.js +19 -0
  43. package/dist/nodes/Binance/actions/future/account/index.js.map +1 -0
  44. package/dist/nodes/Binance/actions/future/account/properties.d.ts +2 -0
  45. package/dist/nodes/Binance/actions/future/account/properties.js +5 -0
  46. package/dist/nodes/Binance/actions/future/account/properties.js.map +1 -0
  47. package/dist/nodes/Binance/actions/future/candle/candle.execute.d.ts +3 -0
  48. package/dist/nodes/Binance/actions/future/candle/candle.execute.js +36 -0
  49. package/dist/nodes/Binance/actions/future/candle/candle.execute.js.map +1 -0
  50. package/dist/nodes/Binance/actions/future/candle/candle.properties.d.ts +2 -0
  51. package/dist/nodes/Binance/actions/future/candle/candle.properties.js +68 -0
  52. package/dist/nodes/Binance/actions/future/candle/candle.properties.js.map +1 -0
  53. package/dist/nodes/Binance/actions/future/candle/index.d.ts +2 -0
  54. package/dist/nodes/Binance/actions/future/candle/index.js +19 -0
  55. package/dist/nodes/Binance/actions/future/candle/index.js.map +1 -0
  56. package/dist/nodes/Binance/actions/future/exchange/exchange.execute.d.ts +3 -0
  57. package/dist/nodes/Binance/actions/future/exchange/exchange.execute.js +19 -0
  58. package/dist/nodes/Binance/actions/future/exchange/exchange.execute.js.map +1 -0
  59. package/dist/nodes/Binance/actions/future/exchange/exchange.properties.d.ts +2 -0
  60. package/dist/nodes/Binance/actions/future/exchange/exchange.properties.js +20 -0
  61. package/dist/nodes/Binance/actions/future/exchange/exchange.properties.js.map +1 -0
  62. package/dist/nodes/Binance/actions/future/exchange/index.d.ts +2 -0
  63. package/dist/nodes/Binance/actions/future/exchange/index.js +19 -0
  64. package/dist/nodes/Binance/actions/future/exchange/index.js.map +1 -0
  65. package/dist/nodes/Binance/actions/future/future.execute.d.ts +3 -0
  66. package/dist/nodes/Binance/actions/future/future.execute.js +56 -0
  67. package/dist/nodes/Binance/actions/future/future.execute.js.map +1 -0
  68. package/dist/nodes/Binance/actions/future/future.properties.d.ts +2 -0
  69. package/dist/nodes/Binance/actions/future/future.properties.js +99 -0
  70. package/dist/nodes/Binance/actions/future/future.properties.js.map +1 -0
  71. package/dist/nodes/Binance/actions/future/index.d.ts +2 -0
  72. package/dist/nodes/Binance/actions/future/index.js +19 -0
  73. package/dist/nodes/Binance/actions/future/index.js.map +1 -0
  74. package/dist/nodes/Binance/actions/future/leverage/index.d.ts +2 -0
  75. package/dist/nodes/Binance/actions/future/leverage/index.js +19 -0
  76. package/dist/nodes/Binance/actions/future/leverage/index.js.map +1 -0
  77. package/dist/nodes/Binance/actions/future/leverage/leverage.execute.d.ts +3 -0
  78. package/dist/nodes/Binance/actions/future/leverage/leverage.execute.js +28 -0
  79. package/dist/nodes/Binance/actions/future/leverage/leverage.execute.js.map +1 -0
  80. package/dist/nodes/Binance/actions/future/leverage/leverage.properties.d.ts +2 -0
  81. package/dist/nodes/Binance/actions/future/leverage/leverage.properties.js +50 -0
  82. package/dist/nodes/Binance/actions/future/leverage/leverage.properties.js.map +1 -0
  83. package/dist/nodes/Binance/actions/future/order/index.d.ts +2 -0
  84. package/dist/nodes/Binance/actions/future/order/index.js +19 -0
  85. package/dist/nodes/Binance/actions/future/order/index.js.map +1 -0
  86. package/dist/nodes/Binance/actions/future/order/order.execute.d.ts +3 -0
  87. package/dist/nodes/Binance/actions/future/order/order.execute.js +48 -0
  88. package/dist/nodes/Binance/actions/future/order/order.execute.js.map +1 -0
  89. package/dist/nodes/Binance/actions/future/order/order.properties.d.ts +2 -0
  90. package/dist/nodes/Binance/actions/future/order/order.properties.js +103 -0
  91. package/dist/nodes/Binance/actions/future/order/order.properties.js.map +1 -0
  92. package/dist/nodes/Binance/actions/future/position/index.d.ts +2 -0
  93. package/dist/nodes/Binance/actions/future/position/index.js +19 -0
  94. package/dist/nodes/Binance/actions/future/position/index.js.map +1 -0
  95. package/dist/nodes/Binance/actions/future/position/position.execute.d.ts +3 -0
  96. package/dist/nodes/Binance/actions/future/position/position.execute.js +16 -0
  97. package/dist/nodes/Binance/actions/future/position/position.execute.js.map +1 -0
  98. package/dist/nodes/Binance/actions/future/position/position.properties.d.ts +2 -0
  99. package/dist/nodes/Binance/actions/future/position/position.properties.js +20 -0
  100. package/dist/nodes/Binance/actions/future/position/position.properties.js.map +1 -0
  101. package/dist/nodes/Binance/actions/future/statistics/index.d.ts +2 -0
  102. package/dist/nodes/Binance/actions/future/statistics/index.js +19 -0
  103. package/dist/nodes/Binance/actions/future/statistics/index.js.map +1 -0
  104. package/dist/nodes/Binance/actions/future/statistics/statistics.execute.d.ts +3 -0
  105. package/dist/nodes/Binance/actions/future/statistics/statistics.execute.js +16 -0
  106. package/dist/nodes/Binance/actions/future/statistics/statistics.execute.js.map +1 -0
  107. package/dist/nodes/Binance/actions/future/statistics/statistics.properties.d.ts +2 -0
  108. package/dist/nodes/Binance/actions/future/statistics/statistics.properties.js +20 -0
  109. package/dist/nodes/Binance/actions/future/statistics/statistics.properties.js.map +1 -0
  110. package/dist/nodes/Binance/actions/spot/account/execute.d.ts +3 -0
  111. package/dist/nodes/Binance/actions/spot/account/execute.js +15 -0
  112. package/dist/nodes/Binance/actions/spot/account/execute.js.map +1 -0
  113. package/dist/nodes/Binance/actions/spot/account/index.d.ts +2 -0
  114. package/dist/nodes/Binance/actions/spot/account/index.js +19 -0
  115. package/dist/nodes/Binance/actions/spot/account/index.js.map +1 -0
  116. package/dist/nodes/Binance/actions/spot/account/properties.d.ts +2 -0
  117. package/dist/nodes/Binance/actions/spot/account/properties.js +5 -0
  118. package/dist/nodes/Binance/actions/spot/account/properties.js.map +1 -0
  119. package/dist/nodes/Binance/actions/spot/candle/candle.execute.d.ts +3 -0
  120. package/dist/nodes/Binance/actions/spot/candle/candle.execute.js +39 -0
  121. package/dist/nodes/Binance/actions/spot/candle/candle.execute.js.map +1 -0
  122. package/dist/nodes/Binance/actions/spot/candle/candle.properties.d.ts +2 -0
  123. package/dist/nodes/Binance/actions/spot/candle/candle.properties.js +68 -0
  124. package/dist/nodes/Binance/actions/spot/candle/candle.properties.js.map +1 -0
  125. package/dist/nodes/Binance/actions/spot/candle/index.d.ts +2 -0
  126. package/dist/nodes/Binance/actions/spot/candle/index.js +19 -0
  127. package/dist/nodes/Binance/actions/spot/candle/index.js.map +1 -0
  128. package/dist/nodes/Binance/actions/spot/exchange/exchange.execute.d.ts +3 -0
  129. package/dist/nodes/Binance/actions/spot/exchange/exchange.execute.js +16 -0
  130. package/dist/nodes/Binance/actions/spot/exchange/exchange.execute.js.map +1 -0
  131. package/dist/nodes/Binance/actions/spot/exchange/exchange.properties.d.ts +2 -0
  132. package/dist/nodes/Binance/actions/spot/exchange/exchange.properties.js +21 -0
  133. package/dist/nodes/Binance/actions/spot/exchange/exchange.properties.js.map +1 -0
  134. package/dist/nodes/Binance/actions/spot/exchange/index.d.ts +2 -0
  135. package/dist/nodes/Binance/actions/spot/exchange/index.js +19 -0
  136. package/dist/nodes/Binance/actions/spot/exchange/index.js.map +1 -0
  137. package/dist/nodes/Binance/actions/spot/index.d.ts +2 -0
  138. package/dist/nodes/Binance/actions/spot/index.js +19 -0
  139. package/dist/nodes/Binance/actions/spot/index.js.map +1 -0
  140. package/dist/nodes/Binance/actions/spot/order/index.d.ts +2 -0
  141. package/dist/nodes/Binance/actions/spot/order/index.js +19 -0
  142. package/dist/nodes/Binance/actions/spot/order/index.js.map +1 -0
  143. package/dist/nodes/Binance/actions/spot/order/order.execute.d.ts +3 -0
  144. package/dist/nodes/Binance/actions/spot/order/order.execute.js +29 -0
  145. package/dist/nodes/Binance/actions/spot/order/order.execute.js.map +1 -0
  146. package/dist/nodes/Binance/actions/spot/order/order.properties.d.ts +2 -0
  147. package/dist/nodes/Binance/actions/spot/order/order.properties.js +58 -0
  148. package/dist/nodes/Binance/actions/spot/order/order.properties.js.map +1 -0
  149. package/dist/nodes/Binance/actions/spot/spot.execute.d.ts +3 -0
  150. package/dist/nodes/Binance/actions/spot/spot.execute.js +47 -0
  151. package/dist/nodes/Binance/actions/spot/spot.execute.js.map +1 -0
  152. package/dist/nodes/Binance/actions/spot/spot.properties.d.ts +2 -0
  153. package/dist/nodes/Binance/actions/spot/spot.properties.js +75 -0
  154. package/dist/nodes/Binance/actions/spot/spot.properties.js.map +1 -0
  155. package/dist/nodes/Binance/interface.d.ts +17 -0
  156. package/dist/nodes/Binance/interface.js +3 -0
  157. package/dist/nodes/Binance/interface.js.map +1 -0
  158. package/dist/nodes/Binance/methods/index.d.ts +1 -0
  159. package/dist/nodes/Binance/methods/index.js +28 -0
  160. package/dist/nodes/Binance/methods/index.js.map +1 -0
  161. package/dist/nodes/Binance/methods/loadOptions.d.ts +4 -0
  162. package/dist/nodes/Binance/methods/loadOptions.js +49 -0
  163. package/dist/nodes/Binance/methods/loadOptions.js.map +1 -0
  164. package/dist/nodes/Binance/triggers/binance.properties.d.ts +2 -0
  165. package/dist/nodes/Binance/triggers/binance.properties.js +46 -0
  166. package/dist/nodes/Binance/triggers/binance.properties.js.map +1 -0
  167. package/dist/nodes/Binance/triggers/binance.trigger.d.ts +3 -0
  168. package/dist/nodes/Binance/triggers/binance.trigger.js +42 -0
  169. package/dist/nodes/Binance/triggers/binance.trigger.js.map +1 -0
  170. package/dist/nodes/Binance/triggers/candle/candle.properties.d.ts +2 -0
  171. package/dist/nodes/Binance/triggers/candle/candle.properties.js +54 -0
  172. package/dist/nodes/Binance/triggers/candle/candle.properties.js.map +1 -0
  173. package/dist/nodes/Binance/triggers/candle/candle.trigger.d.ts +3 -0
  174. package/dist/nodes/Binance/triggers/candle/candle.trigger.js +47 -0
  175. package/dist/nodes/Binance/triggers/candle/candle.trigger.js.map +1 -0
  176. package/dist/nodes/Binance/triggers/candle/index.d.ts +2 -0
  177. package/dist/nodes/Binance/triggers/candle/index.js +19 -0
  178. package/dist/nodes/Binance/triggers/candle/index.js.map +1 -0
  179. package/dist/package.json +69 -0
  180. package/index.js +0 -0
  181. package/package.json +69 -0
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.properties = void 0;
4
+ exports.properties = [
5
+ {
6
+ displayName: 'Symbol Name or ID',
7
+ name: 'symbol',
8
+ type: 'options',
9
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
10
+ displayOptions: {
11
+ show: { resource: ['spot'], operation: ['exchange'] },
12
+ },
13
+ typeOptions: {
14
+ loadOptionsMethod: 'getSymbols',
15
+ },
16
+ required: true,
17
+ options: [],
18
+ default: '',
19
+ },
20
+ ];
21
+ //# sourceMappingURL=exchange.properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exchange.properties.js","sourceRoot":"","sources":["../../../../../../nodes/Binance/actions/spot/exchange/exchange.properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAA2B;IACjD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,WAAW,EACV,yHAAyH;QAC1H,cAAc,EAAE;YACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE;SACrD;QACD,WAAW,EAAE;YACZ,iBAAiB,EAAE,YAAY;SAC/B;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;KACX;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './exchange.execute';
2
+ export * from './exchange.properties';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./exchange.execute"), exports);
18
+ __exportStar(require("./exchange.properties"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/Binance/actions/spot/exchange/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,wDAAsC"}
@@ -0,0 +1,2 @@
1
+ export * from './spot.execute';
2
+ export * from './spot.properties';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./spot.execute"), exports);
18
+ __exportStar(require("./spot.properties"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Binance/actions/spot/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC"}
@@ -0,0 +1,2 @@
1
+ export * from './order.properties';
2
+ export * from './order.execute';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./order.properties"), exports);
18
+ __exportStar(require("./order.execute"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/Binance/actions/spot/order/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,kDAAgC"}
@@ -0,0 +1,3 @@
1
+ import { IExecuteFunctions } from 'n8n-core';
2
+ import { INodeExecutionData } from 'n8n-workflow';
3
+ export declare function execute(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.execute = void 0;
7
+ const binance_api_node_1 = __importDefault(require("binance-api-node"));
8
+ async function execute(index) {
9
+ const credentials = await this.getCredentials('binanceApi', index);
10
+ const binanceClient = (0, binance_api_node_1.default)(credentials);
11
+ const side = this.getNodeParameter('side', index);
12
+ const symbol = this.getNodeParameter('symbol', index);
13
+ if (side === 'CLEAR') {
14
+ const order = await binanceClient.cancelOpenOrders({ symbol });
15
+ return this.helpers.returnJsonArray(order);
16
+ }
17
+ const quantity = this.getNodeParameter('quantity', index);
18
+ const price = this.getNodeParameter('price', index);
19
+ const order = await binanceClient.order({
20
+ symbol,
21
+ quantity,
22
+ price,
23
+ side: side,
24
+ type: "LIMIT",
25
+ });
26
+ return this.helpers.returnJsonArray(order);
27
+ }
28
+ exports.execute = execute;
29
+ //# sourceMappingURL=order.execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.execute.js","sourceRoot":"","sources":["../../../../../../nodes/Binance/actions/spot/order/order.execute.ts"],"names":[],"mappings":";;;;;;AAEA,wEAAuE;AAEhE,KAAK,UAAU,OAAO,CAE5B,KAAa;IAEb,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACnE,MAAM,aAAa,GAAG,IAAA,0BAAa,EAAC,WAAW,CAAC,CAAC;IAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAW,CAAC;IAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAW,CAAC;IAEhE,IAAI,IAAI,KAAK,OAAO,EAAE;QACrB,MAAM,KAAK,GAAG,MAAM,aAAa,CAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,KAAY,CAAC,CAAC;KAClD;IAED,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAW,CAAC;IACpE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAE9D,MAAM,KAAK,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC;QACvC,MAAM;QACN,QAAQ;QACR,KAAK;QACL,IAAI,EAAE,IAAiB;QACvB,IAAI,SAAiB;KACrB,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,KAAY,CAAC,CAAC;AACnD,CAAC;AA5BD,0BA4BC"}
@@ -0,0 +1,2 @@
1
+ import { IBinanceSpotProperties } from '../../../interface';
2
+ export declare const properties: IBinanceSpotProperties;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.properties = void 0;
4
+ exports.properties = [
5
+ {
6
+ displayName: 'Side',
7
+ name: 'side',
8
+ type: 'options',
9
+ required: true,
10
+ displayOptions: {
11
+ show: { resource: ['spot'], operation: ['order'] },
12
+ },
13
+ options: [
14
+ { name: 'BUY', value: 'BUY' },
15
+ { name: 'SELL', value: 'SELL' },
16
+ { name: 'CLEAR', value: 'CLEAR' },
17
+ ],
18
+ default: 'BUY',
19
+ },
20
+ {
21
+ displayName: 'Symbol Name or ID',
22
+ name: 'symbol',
23
+ type: 'options',
24
+ required: true,
25
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
26
+ displayOptions: {
27
+ show: { resource: ['spot'], operation: ['order'] },
28
+ },
29
+ typeOptions: {
30
+ loadOptionsMethod: 'getSymbols',
31
+ },
32
+ options: [],
33
+ default: '',
34
+ },
35
+ {
36
+ displayName: 'Quantity',
37
+ name: 'quantity',
38
+ type: 'number',
39
+ required: true,
40
+ displayOptions: {
41
+ show: { resource: ['spot'], operation: ['order'] },
42
+ hide: { side: ['CLEAR'] },
43
+ },
44
+ default: 0,
45
+ },
46
+ {
47
+ displayName: 'Price',
48
+ name: 'price',
49
+ type: 'number',
50
+ required: true,
51
+ displayOptions: {
52
+ show: { resource: ['spot'], operation: ['order'] },
53
+ hide: { side: ['CLEAR'] },
54
+ },
55
+ default: 0,
56
+ },
57
+ ];
58
+ //# sourceMappingURL=order.properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.properties.js","sourceRoot":"","sources":["../../../../../../nodes/Binance/actions/spot/order/order.properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAA2B;IACjD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE;SAClD;QACD,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YAC7B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;SACjC;QACD,OAAO,EAAE,KAAK;KACd;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EACV,yHAAyH;QAC1H,cAAc,EAAE;YACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE;SAClD;QACD,WAAW,EAAE;YACZ,iBAAiB,EAAE,YAAY;SAC/B;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;KACX;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE;YAClD,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE;SACzB;QACD,OAAO,EAAE,CAAC;KACV;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE;YAClD,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE;SACzB;QACD,OAAO,EAAE,CAAC;KACV;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IExecuteFunctions } from 'n8n-core';
2
+ import { INodeExecutionData } from 'n8n-workflow';
3
+ export declare function execute(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.execute = void 0;
27
+ const order = __importStar(require("./order"));
28
+ const account = __importStar(require("./account"));
29
+ const candle = __importStar(require("./candle"));
30
+ const exchange = __importStar(require("./exchange"));
31
+ async function execute(index) {
32
+ const operation = this.getNodeParameter('operation', index);
33
+ switch (operation) {
34
+ case 'order':
35
+ return order.execute.call(this, index);
36
+ case 'account':
37
+ return account.execute.call(this, index);
38
+ case 'candle':
39
+ return candle.execute.call(this, index);
40
+ case 'exchange':
41
+ return exchange.execute.call(this, index);
42
+ default:
43
+ return [];
44
+ }
45
+ }
46
+ exports.execute = execute;
47
+ //# sourceMappingURL=spot.execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spot.execute.js","sourceRoot":"","sources":["../../../../../nodes/Binance/actions/spot/spot.execute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,+CAAiC;AACjC,mDAAqC;AACrC,iDAAmC;AACnC,qDAAuC;AAEhC,KAAK,UAAU,OAAO,CAE5B,KAAa;IAEb,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAW,CAAC;IAEtE,QAAQ,SAAS,EAAE;QAClB,KAAK,OAAO;YACX,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACxC,KAAK,SAAS;YACb,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC1C,KAAK,QAAQ;YACZ,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACzC,KAAK,UAAU;YACd,OAAO,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC3C;YACC,OAAO,EAAE,CAAC;KACX;AACF,CAAC;AAlBD,0BAkBC"}
@@ -0,0 +1,2 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ export declare const properties: INodeProperties[];
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.properties = void 0;
27
+ const order = __importStar(require("./order"));
28
+ const account = __importStar(require("./account"));
29
+ const candle = __importStar(require("./candle"));
30
+ const exchange = __importStar(require("./exchange"));
31
+ exports.properties = [
32
+ {
33
+ displayName: 'Operation',
34
+ name: 'operation',
35
+ type: 'options',
36
+ noDataExpression: true,
37
+ displayOptions: {
38
+ show: {
39
+ resource: ['spot'],
40
+ },
41
+ },
42
+ options: [
43
+ {
44
+ name: 'Account',
45
+ value: 'account',
46
+ description: 'Get the account',
47
+ action: 'Get the account',
48
+ },
49
+ {
50
+ name: 'Order',
51
+ value: 'order',
52
+ action: 'Buy or sell a cryptocurrency',
53
+ description: 'Buy or sell a cryptocurrency',
54
+ },
55
+ {
56
+ name: 'Candle',
57
+ value: 'candle',
58
+ description: 'Get the candles',
59
+ action: 'Get the candles',
60
+ },
61
+ {
62
+ name: 'Exchange',
63
+ value: 'exchange',
64
+ description: 'Get the exchange info',
65
+ action: 'Get the exchange',
66
+ },
67
+ ],
68
+ default: 'account',
69
+ },
70
+ ...order.properties,
71
+ ...account.properties,
72
+ ...candle.properties,
73
+ ...exchange.properties,
74
+ ];
75
+ //# sourceMappingURL=spot.properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spot.properties.js","sourceRoot":"","sources":["../../../../../nodes/Binance/actions/spot/spot.properties.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+CAAiC;AACjC,mDAAqC;AACrC,iDAAmC;AACnC,qDAAuC;AAE1B,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,8BAA8B;gBACtC,WAAW,EAAE,8BAA8B;aAC3C;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,uBAAuB;gBACpC,MAAM,EAAE,kBAAkB;aAC1B;SACD;QACD,OAAO,EAAE,SAAS;KAClB;IAED,GAAG,KAAK,CAAC,UAAU;IACnB,GAAG,OAAO,CAAC,UAAU;IACrB,GAAG,MAAM,CAAC,UAAU;IACpB,GAAG,QAAQ,CAAC,UAAU;CACtB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { AllEntities, Entity, PropertiesOf } from 'n8n-workflow';
2
+ type IBinanceMap = {
3
+ spot: 'exchange' | 'account' | 'candle' | 'order';
4
+ future: 'exchange' | 'account' | 'candle' | 'order' | 'leverage' | 'position' | 'statistics';
5
+ margin: 'exchange' | 'account' | 'candle' | 'order';
6
+ custom: 'function';
7
+ };
8
+ export type IBinance = AllEntities<IBinanceMap>;
9
+ export type IBinanceSpot = Entity<IBinanceMap, 'spot'>;
10
+ export type IBinanceFuture = Entity<IBinanceMap, 'future'>;
11
+ export type IBinanceMargin = Entity<IBinanceMap, 'margin'>;
12
+ export type IBinanceCustom = Entity<IBinanceMap, 'custom'>;
13
+ export type IBinanceSpotProperties = PropertiesOf<IBinanceSpot>;
14
+ export type IBinanceFutureProperties = PropertiesOf<IBinanceFuture>;
15
+ export type IBinanceMarginProperties = PropertiesOf<IBinanceMargin>;
16
+ export type IBinanceCustomProperties = PropertiesOf<IBinanceCustom>;
17
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../nodes/Binance/interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * as loadOptions from './loadOptions';
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.loadOptions = void 0;
27
+ exports.loadOptions = __importStar(require("./loadOptions"));
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Binance/methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA6C"}
@@ -0,0 +1,4 @@
1
+ import { ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
2
+ export declare function getSymbols(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
3
+ export declare function getCustomFunctions(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
4
+ export declare function getIntervals(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getIntervals = exports.getCustomFunctions = exports.getSymbols = void 0;
7
+ const binance_api_node_1 = __importDefault(require("binance-api-node"));
8
+ async function getSymbols() {
9
+ const credentials = await this.getCredentials('binanceApi');
10
+ const resource = this.getNodeParameter('resource', 0);
11
+ const binanceClient = (0, binance_api_node_1.default)(credentials);
12
+ const exchange = resource === 'future'
13
+ ? await binanceClient.futuresExchangeInfo()
14
+ : await binanceClient.exchangeInfo();
15
+ const options = exchange.symbols.map((item) => ({
16
+ name: item.symbol,
17
+ value: item.symbol,
18
+ }));
19
+ return options;
20
+ }
21
+ exports.getSymbols = getSymbols;
22
+ async function getCustomFunctions() {
23
+ const credentials = await this.getCredentials('binanceApi');
24
+ const binanceClient = (0, binance_api_node_1.default)(credentials);
25
+ const functions = Object.keys(binanceClient).filter((key) => typeof binanceClient[key] === 'function');
26
+ return functions.map((name) => ({ name, value: name }));
27
+ }
28
+ exports.getCustomFunctions = getCustomFunctions;
29
+ async function getIntervals() {
30
+ return [
31
+ '1m',
32
+ '3m',
33
+ '5m',
34
+ '15m',
35
+ '30m',
36
+ '1h',
37
+ '2h',
38
+ '4h',
39
+ '6h',
40
+ '8h',
41
+ '12h',
42
+ '1d',
43
+ '3d',
44
+ '1w',
45
+ '1M',
46
+ ].map((name) => ({ name, value: name }));
47
+ }
48
+ exports.getIntervals = getIntervals;
49
+ //# sourceMappingURL=loadOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadOptions.js","sourceRoot":"","sources":["../../../../nodes/Binance/methods/loadOptions.ts"],"names":[],"mappings":";;;;;;AACA,wEAA6C;AAEtC,KAAK,UAAU,UAAU;IAC/B,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAEhE,MAAM,aAAa,GAAG,IAAA,0BAAa,EAAC,WAAW,CAAC,CAAC;IAEjD,MAAM,QAAQ,GACb,QAAQ,KAAK,QAAQ;QACpB,CAAC,CAAC,MAAM,aAAa,CAAC,mBAAmB,EAAE;QAC3C,CAAC,CAAC,MAAM,aAAa,CAAC,YAAY,EAAE,CAAC;IACvC,MAAM,OAAO,GAA2B,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACvE,IAAI,EAAE,IAAI,CAAC,MAAM;QACjB,KAAK,EAAE,IAAI,CAAC,MAAM;KAClB,CAAC,CAAC,CAAC;IAEJ,OAAO,OAAO,CAAC;AAChB,CAAC;AAhBD,gCAgBC;AAEM,KAAK,UAAU,kBAAkB;IAGvC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAC5D,MAAM,aAAa,GAAG,IAAA,0BAAa,EAAC,WAAW,CAAC,CAAC;IAEjD,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,aAAoB,CAAC,CAAC,MAAM,CACzD,CAAC,GAAG,EAAE,EAAE,CAAC,OAAQ,aAAqB,CAAC,GAAG,CAAC,KAAK,UAAU,CAC1D,CAAC;IAEF,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC;AAXD,gDAWC;AAEM,KAAK,UAAU,YAAY;IACjC,OAAO;QACN,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,KAAK;QACL,KAAK;QACL,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,KAAK;QACL,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,IAAI;KACJ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAC1C,CAAC;AAlBD,oCAkBC"}
@@ -0,0 +1,2 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ export declare const properties: INodeProperties[];
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.properties = void 0;
27
+ const candle = __importStar(require("./candle"));
28
+ exports.properties = [
29
+ {
30
+ displayName: 'Resource',
31
+ name: 'resource',
32
+ type: 'hidden',
33
+ default: 'trigger',
34
+ noDataExpression: true,
35
+ },
36
+ {
37
+ displayName: 'Operation',
38
+ name: 'operation',
39
+ type: 'options',
40
+ options: [{ name: 'Candle', value: 'candle' }],
41
+ default: 'candle',
42
+ noDataExpression: true,
43
+ },
44
+ ...candle.properties,
45
+ ];
46
+ //# sourceMappingURL=binance.properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binance.properties.js","sourceRoot":"","sources":["../../../../nodes/Binance/triggers/binance.properties.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iDAAmC;AAEtB,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,SAAS;QAClB,gBAAgB,EAAE,IAAI;KACtB;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;QAC9C,OAAO,EAAE,QAAQ;QACjB,gBAAgB,EAAE,IAAI;KACtB;IAED,GAAG,MAAM,CAAC,UAAU;CACpB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ITriggerFunctions } from 'n8n-core';
2
+ import { ITriggerResponse } from 'n8n-workflow';
3
+ export declare function trigger(this: ITriggerFunctions): Promise<ITriggerResponse | undefined>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.trigger = void 0;
27
+ const candle = __importStar(require("./candle"));
28
+ async function trigger() {
29
+ const resource = this.getNodeParameter('resource');
30
+ const operation = this.getNodeParameter('operation');
31
+ if (resource !== 'trigger') {
32
+ return;
33
+ }
34
+ switch (operation) {
35
+ case 'candle':
36
+ return candle.trigger.call(this);
37
+ default:
38
+ return;
39
+ }
40
+ }
41
+ exports.trigger = trigger;
42
+ //# sourceMappingURL=binance.trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binance.trigger.js","sourceRoot":"","sources":["../../../../nodes/Binance/triggers/binance.trigger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,iDAAmC;AAE5B,KAAK,UAAU,OAAO;IAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAW,CAAC;IAC7D,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAW,CAAC;IAE/D,IAAI,QAAQ,KAAK,SAAS,EAAE;QAC3B,OAAO;KACP;IAED,QAAQ,SAAS,EAAE;QAClB,KAAK,QAAQ;YACZ,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClC;YACC,OAAO;KACR;AACF,CAAC;AAdD,0BAcC"}
@@ -0,0 +1,2 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ export declare const properties: INodeProperties[];