n8n-nodes-bybit 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 (88) hide show
  1. package/LICENSE +46 -0
  2. package/README.md +353 -0
  3. package/dist/credentials/BybitApi.credentials.d.ts +10 -0
  4. package/dist/credentials/BybitApi.credentials.d.ts.map +1 -0
  5. package/dist/credentials/BybitApi.credentials.js +73 -0
  6. package/dist/credentials/BybitApi.credentials.js.map +1 -0
  7. package/dist/index.d.ts +13 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +21 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/nodes/Bybit/Bybit.node.d.ts +15 -0
  12. package/dist/nodes/Bybit/Bybit.node.d.ts.map +1 -0
  13. package/dist/nodes/Bybit/Bybit.node.js +216 -0
  14. package/dist/nodes/Bybit/Bybit.node.js.map +1 -0
  15. package/dist/nodes/Bybit/BybitTrigger.node.d.ts +15 -0
  16. package/dist/nodes/Bybit/BybitTrigger.node.d.ts.map +1 -0
  17. package/dist/nodes/Bybit/BybitTrigger.node.js +499 -0
  18. package/dist/nodes/Bybit/BybitTrigger.node.js.map +1 -0
  19. package/dist/nodes/Bybit/actions/account/index.d.ts +5 -0
  20. package/dist/nodes/Bybit/actions/account/index.d.ts.map +1 -0
  21. package/dist/nodes/Bybit/actions/account/index.js +448 -0
  22. package/dist/nodes/Bybit/actions/account/index.js.map +1 -0
  23. package/dist/nodes/Bybit/actions/asset/index.d.ts +5 -0
  24. package/dist/nodes/Bybit/actions/asset/index.d.ts.map +1 -0
  25. package/dist/nodes/Bybit/actions/asset/index.js +710 -0
  26. package/dist/nodes/Bybit/actions/asset/index.js.map +1 -0
  27. package/dist/nodes/Bybit/actions/institutionalLending/index.d.ts +14 -0
  28. package/dist/nodes/Bybit/actions/institutionalLending/index.d.ts.map +1 -0
  29. package/dist/nodes/Bybit/actions/institutionalLending/index.js +282 -0
  30. package/dist/nodes/Bybit/actions/institutionalLending/index.js.map +1 -0
  31. package/dist/nodes/Bybit/actions/market/index.d.ts +5 -0
  32. package/dist/nodes/Bybit/actions/market/index.d.ts.map +1 -0
  33. package/dist/nodes/Bybit/actions/market/index.js +470 -0
  34. package/dist/nodes/Bybit/actions/market/index.js.map +1 -0
  35. package/dist/nodes/Bybit/actions/position/index.d.ts +5 -0
  36. package/dist/nodes/Bybit/actions/position/index.d.ts.map +1 -0
  37. package/dist/nodes/Bybit/actions/position/index.js +583 -0
  38. package/dist/nodes/Bybit/actions/position/index.js.map +1 -0
  39. package/dist/nodes/Bybit/actions/preUpgradeData/index.d.ts +14 -0
  40. package/dist/nodes/Bybit/actions/preUpgradeData/index.d.ts.map +1 -0
  41. package/dist/nodes/Bybit/actions/preUpgradeData/index.js +412 -0
  42. package/dist/nodes/Bybit/actions/preUpgradeData/index.js.map +1 -0
  43. package/dist/nodes/Bybit/actions/spotLeverageToken/index.d.ts +5 -0
  44. package/dist/nodes/Bybit/actions/spotLeverageToken/index.d.ts.map +1 -0
  45. package/dist/nodes/Bybit/actions/spotLeverageToken/index.js +217 -0
  46. package/dist/nodes/Bybit/actions/spotLeverageToken/index.js.map +1 -0
  47. package/dist/nodes/Bybit/actions/spotMarginUta/index.d.ts +14 -0
  48. package/dist/nodes/Bybit/actions/spotMarginUta/index.d.ts.map +1 -0
  49. package/dist/nodes/Bybit/actions/spotMarginUta/index.js +205 -0
  50. package/dist/nodes/Bybit/actions/spotMarginUta/index.js.map +1 -0
  51. package/dist/nodes/Bybit/actions/trade/index.d.ts +5 -0
  52. package/dist/nodes/Bybit/actions/trade/index.d.ts.map +1 -0
  53. package/dist/nodes/Bybit/actions/trade/index.js +740 -0
  54. package/dist/nodes/Bybit/actions/trade/index.js.map +1 -0
  55. package/dist/nodes/Bybit/actions/user/index.d.ts +5 -0
  56. package/dist/nodes/Bybit/actions/user/index.d.ts.map +1 -0
  57. package/dist/nodes/Bybit/actions/user/index.js +331 -0
  58. package/dist/nodes/Bybit/actions/user/index.js.map +1 -0
  59. package/dist/nodes/Bybit/actions/utility/index.d.ts +14 -0
  60. package/dist/nodes/Bybit/actions/utility/index.d.ts.map +1 -0
  61. package/dist/nodes/Bybit/actions/utility/index.js +194 -0
  62. package/dist/nodes/Bybit/actions/utility/index.js.map +1 -0
  63. package/dist/nodes/Bybit/bybit.svg +7 -0
  64. package/dist/nodes/Bybit/constants/options.d.ts +21 -0
  65. package/dist/nodes/Bybit/constants/options.d.ts.map +1 -0
  66. package/dist/nodes/Bybit/constants/options.js +153 -0
  67. package/dist/nodes/Bybit/constants/options.js.map +1 -0
  68. package/dist/nodes/Bybit/transport/bybitApi.d.ts +11 -0
  69. package/dist/nodes/Bybit/transport/bybitApi.d.ts.map +1 -0
  70. package/dist/nodes/Bybit/transport/bybitApi.js +145 -0
  71. package/dist/nodes/Bybit/transport/bybitApi.js.map +1 -0
  72. package/dist/nodes/Bybit/utils/helpers.d.ts +21 -0
  73. package/dist/nodes/Bybit/utils/helpers.d.ts.map +1 -0
  74. package/dist/nodes/Bybit/utils/helpers.js +144 -0
  75. package/dist/nodes/Bybit/utils/helpers.js.map +1 -0
  76. package/dist/test/integration/node.test.d.ts +11 -0
  77. package/dist/test/integration/node.test.d.ts.map +1 -0
  78. package/dist/test/integration/node.test.js +185 -0
  79. package/dist/test/integration/node.test.js.map +1 -0
  80. package/dist/test/unit/helpers.test.d.ts +11 -0
  81. package/dist/test/unit/helpers.test.d.ts.map +1 -0
  82. package/dist/test/unit/helpers.test.js +206 -0
  83. package/dist/test/unit/helpers.test.js.map +1 -0
  84. package/dist/test/unit/transport.test.d.ts +11 -0
  85. package/dist/test/unit/transport.test.d.ts.map +1 -0
  86. package/dist/test/unit/transport.test.js +177 -0
  87. package/dist/test/unit/transport.test.js.map +1 -0
  88. package/package.json +76 -0
package/LICENSE ADDED
@@ -0,0 +1,46 @@
1
+ Business Source License 1.1
2
+
3
+ License text copyright (c) 2017 MariaDB Corporation Ab.
4
+
5
+ Licensor:
6
+ Velocity BPA, LLC
7
+ https://velobpa.com
8
+
9
+ Licensed Work:
10
+ This repository and all source code, documentation, and associated artifacts
11
+ contained herein, including all n8n community nodes published by Velocity BPA.
12
+
13
+ Additional Use Grant:
14
+ You may use, modify, and run the Licensed Work free of charge for:
15
+ - Personal use
16
+ - Educational use
17
+ - Research use
18
+ - Internal business use, provided such use does not involve resale,
19
+ redistribution, or offering the Licensed Work as part of a commercial
20
+ product or service.
21
+
22
+ Commercial Use Restriction:
23
+ Commercial Use of the Licensed Work is prohibited without a valid
24
+ Commercial License issued by the Licensor.
25
+
26
+ Commercial Use includes, but is not limited to:
27
+ - Use of the Licensed Work within any Software-as-a-Service (SaaS),
28
+ Platform-as-a-Service (PaaS), or hosted application that is sold,
29
+ licensed, or monetized in any form
30
+ - Offering the Licensed Work as part of a managed services engagement
31
+ - Bundling or redistributing the Licensed Work with a paid product
32
+ - Reselling, sublicensing, or white-labeling the Licensed Work
33
+ - Embedding the Licensed Work into any commercial automation platform,
34
+ integration product, or solution offering
35
+
36
+ Change Date:
37
+ January 1, 2030
38
+
39
+ Change License:
40
+ Apache License, Version 2.0
41
+
42
+ For commercial licensing inquiries:
43
+ licensing@velobpa.com
44
+
45
+ Business Source License 1.1 full text:
46
+ https://mariadb.com/bsl11/
package/README.md ADDED
@@ -0,0 +1,353 @@
1
+ # n8n-nodes-bybit
2
+
3
+ > [Velocity BPA Licensing Notice]
4
+ >
5
+ > This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).
6
+ >
7
+ > Use of this node by for-profit organizations in production environments requires a commercial license from Velocity BPA.
8
+ >
9
+ > For licensing information, visit https://velobpa.com/licensing or contact licensing@velobpa.com.
10
+
11
+ A comprehensive n8n community node for **Bybit** cryptocurrency exchange, providing full integration with the Bybit V5 unified API for spot trading, derivatives (USDT perpetuals, inverse perpetuals), options, and more.
12
+
13
+ ![n8n](https://img.shields.io/badge/n8n-community_node-ff6d5a)
14
+ ![Bybit](https://img.shields.io/badge/Bybit-V5_API-F7A600)
15
+ ![License](https://img.shields.io/badge/license-BSL--1.1-blue)
16
+
17
+ ## Features
18
+
19
+ - **11 Resource Categories** with 100+ operations
20
+ - **Unified Trading Account (UTA)** support
21
+ - **All Product Types**: Spot, Linear (USDT/USDC perpetuals), Inverse, Options
22
+ - **Complete Trading Operations**: Place, amend, cancel orders (single and batch)
23
+ - **Position Management**: Leverage, margin modes, TP/SL, trailing stops
24
+ - **Asset Management**: Transfers, deposits, withdrawals
25
+ - **Sub-Account Support**: Create and manage sub-accounts and API keys
26
+ - **Leveraged Tokens**: Purchase and redeem leveraged tokens
27
+ - **Institutional Lending**: Loan and repayment operations
28
+ - **Poll-Based Triggers**: 10 trigger types for automation
29
+ - **Testnet Support**: Full testnet integration for development
30
+
31
+ ## Installation
32
+
33
+ ### Community Nodes (Recommended)
34
+
35
+ 1. Go to **Settings** > **Community Nodes** in n8n
36
+ 2. Select **Install**
37
+ 3. Enter `n8n-nodes-bybit`
38
+ 4. Agree to the risks and click **Install**
39
+
40
+ ### Manual Installation
41
+
42
+ ```bash
43
+ # Navigate to your n8n custom nodes directory
44
+ cd ~/.n8n/custom
45
+
46
+ # Clone or extract the node package
47
+ npm install n8n-nodes-bybit
48
+ ```
49
+
50
+ ### Development Installation
51
+
52
+ ```bash
53
+ # Clone the repository
54
+ git clone https://github.com/Velocity-BPA/n8n-nodes-bybit.git
55
+ cd n8n-nodes-bybit
56
+
57
+ # Install dependencies
58
+ npm install
59
+
60
+ # Build the project
61
+ npm run build
62
+
63
+ # Create symlink to n8n custom nodes directory
64
+ mkdir -p ~/.n8n/custom
65
+ ln -s $(pwd) ~/.n8n/custom/n8n-nodes-bybit
66
+
67
+ # Restart n8n
68
+ n8n start
69
+ ```
70
+
71
+ ## Credentials Setup
72
+
73
+ | Field | Description | Required |
74
+ |-------|-------------|----------|
75
+ | API Key | Your Bybit API key | Yes |
76
+ | API Secret | Your Bybit API secret | Yes |
77
+ | Environment | `mainnet` or `testnet` | Yes |
78
+ | Receive Window | Request validity window (ms), default: 5000 | No |
79
+
80
+ ### Getting API Keys
81
+
82
+ 1. Log in to [Bybit](https://www.bybit.com) or [Bybit Testnet](https://testnet.bybit.com)
83
+ 2. Go to **Account & Security** > **API Management**
84
+ 3. Create a new API key with required permissions
85
+ 4. Enable IP whitelisting for security (recommended)
86
+
87
+ ## Resources & Operations
88
+
89
+ ### Market Data
90
+ - Get kline (candlestick) data
91
+ - Get mark price, index price, premium index klines
92
+ - Get instruments info
93
+ - Get orderbook depth
94
+ - Get tickers
95
+ - Get funding rate history
96
+ - Get public trading history
97
+ - Get open interest
98
+ - Get historical volatility (options)
99
+ - Get insurance fund data
100
+ - Get risk limits
101
+ - Get delivery price
102
+ - Get long/short ratio
103
+ - Get server time
104
+
105
+ ### Trade
106
+ - Place order (with TP/SL support)
107
+ - Amend order
108
+ - Cancel order
109
+ - Cancel all orders
110
+ - Get open orders
111
+ - Get order history
112
+ - Get trade history
113
+ - Batch place/amend/cancel orders (up to 10)
114
+ - Get spot borrow check
115
+ - Set disconnect cancel all (DCP)
116
+
117
+ ### Position (Derivatives)
118
+ - Get position info
119
+ - Set leverage
120
+ - Switch margin mode (cross/isolated)
121
+ - Set TP/SL mode
122
+ - Switch position mode (one-way/hedge)
123
+ - Set risk limit
124
+ - Set trading stop (TP/SL/trailing)
125
+ - Set auto add margin
126
+ - Add/reduce margin
127
+ - Get closed PnL
128
+ - Move positions
129
+
130
+ ### Account
131
+ - Get wallet balance
132
+ - Get account info
133
+ - Upgrade to Unified Account
134
+ - Get borrow/repay history
135
+ - Get collateral info
136
+ - Get coin Greeks (options)
137
+ - Get fee rates
138
+ - Get transaction log
139
+ - Set margin mode
140
+ - Set spot hedging
141
+ - Set collateral switch
142
+
143
+ ### Asset
144
+ - Get delivery/settlement records
145
+ - Get coin exchange records
146
+ - Get all coins balance
147
+ - Internal transfers
148
+ - Universal transfers
149
+ - Get deposit records
150
+ - Get deposit address
151
+ - Get coin info
152
+ - Withdraw funds
153
+ - Cancel withdrawal
154
+
155
+ ### User (Sub-Accounts)
156
+ - Create sub-account
157
+ - Create/modify/delete API keys
158
+ - Freeze/unfreeze sub-account
159
+ - Get API key info
160
+ - Get affiliate user info
161
+
162
+ ### Spot Leverage Token
163
+ - Get leveraged token info
164
+ - Get market info
165
+ - Purchase tokens
166
+ - Redeem tokens
167
+ - Get purchase/redeem records
168
+
169
+ ### Spot Margin (UTA)
170
+ - Get VIP margin data
171
+ - Toggle margin trade
172
+ - Set leverage
173
+ - Get margin state
174
+
175
+ ### Institutional Lending
176
+ - Get product info
177
+ - Get margin coin info
178
+ - Get loan/repay orders
179
+ - Get LTV info
180
+ - Bind/unbind UID
181
+
182
+ ### Pre-Upgrade Data
183
+ - Get pre-upgrade order history
184
+ - Get pre-upgrade trade history
185
+ - Get pre-upgrade closed PnL
186
+ - Get pre-upgrade transactions
187
+ - Get pre-upgrade option delivery
188
+
189
+ ### Utility
190
+ - Get server time
191
+ - Get announcements
192
+
193
+ ## Trigger Node
194
+
195
+ The Bybit Trigger node supports poll-based automation:
196
+
197
+ | Trigger Type | Description |
198
+ |--------------|-------------|
199
+ | New Order | Trigger when a new order is created |
200
+ | Order Filled | Trigger when an order is filled |
201
+ | Order Canceled | Trigger when an order is canceled |
202
+ | Position Opened | Trigger when a new position is opened |
203
+ | Position Closed | Trigger when a position is closed |
204
+ | Price Alert | Trigger when price crosses threshold |
205
+ | Funding Rate Alert | Trigger on funding rate threshold |
206
+ | Liquidation Alert | Trigger when near liquidation |
207
+ | Balance Changed | Trigger on balance change |
208
+ | PnL Threshold | Trigger when PnL exceeds threshold |
209
+
210
+ ## Usage Examples
211
+
212
+ ### Place a Market Order
213
+
214
+ ```javascript
215
+ // Node configuration
216
+ Resource: Trade
217
+ Operation: Place Order
218
+ Category: linear
219
+ Symbol: BTCUSDT
220
+ Side: Buy
221
+ Order Type: Market
222
+ Quantity: 0.001
223
+ ```
224
+
225
+ ### Get Account Balance
226
+
227
+ ```javascript
228
+ // Node configuration
229
+ Resource: Account
230
+ Operation: Get Wallet Balance
231
+ Account Type: UNIFIED
232
+ Coin: USDT
233
+ ```
234
+
235
+ ### Set Position Leverage
236
+
237
+ ```javascript
238
+ // Node configuration
239
+ Resource: Position
240
+ Operation: Set Leverage
241
+ Category: linear
242
+ Symbol: BTCUSDT
243
+ Buy Leverage: 10
244
+ Sell Leverage: 10
245
+ ```
246
+
247
+ ## Bybit Concepts
248
+
249
+ | Concept | Description |
250
+ |---------|-------------|
251
+ | Category | Product type: `spot`, `linear`, `inverse`, `option` |
252
+ | UTA | Unified Trading Account - single account for all products |
253
+ | Position Mode | One-way (single position) or Hedge (long/short separate) |
254
+ | Margin Mode | Cross (shared margin) or Isolated (per-position margin) |
255
+ | DCP | Disconnect Cancel Protection - auto-cancel on disconnect |
256
+ | Position Idx | 0=one-way, 1=hedge buy, 2=hedge sell |
257
+
258
+ ## Networks
259
+
260
+ | Network | REST API | Use Case |
261
+ |---------|----------|----------|
262
+ | Mainnet | https://api.bybit.com | Production trading |
263
+ | Testnet | https://api-testnet.bybit.com | Development & testing |
264
+
265
+ ## Error Handling
266
+
267
+ The node includes comprehensive error handling for Bybit API error codes:
268
+
269
+ - `10001` - Parameter error
270
+ - `10002` - Request timeout
271
+ - `10003` - Server busy
272
+ - `10004` - Invalid sign
273
+ - `10005` - Permission denied
274
+ - `110001` - Order not found
275
+ - `110007` - Insufficient balance
276
+ - `110012` - Insufficient available balance
277
+ - And many more...
278
+
279
+ ## Security Best Practices
280
+
281
+ 1. **API Key Permissions**: Only enable required permissions
282
+ 2. **IP Whitelisting**: Restrict API access to known IPs
283
+ 3. **Testnet First**: Test workflows on testnet before production
284
+ 4. **Secure Storage**: Use n8n's credential encryption
285
+ 5. **Monitor Activity**: Regularly review API key usage
286
+
287
+ ## Development
288
+
289
+ ```bash
290
+ # Install dependencies
291
+ npm install
292
+
293
+ # Build
294
+ npm run build
295
+
296
+ # Run tests
297
+ npm test
298
+
299
+ # Run tests with coverage
300
+ npm run test:coverage
301
+
302
+ # Lint
303
+ npm run lint
304
+
305
+ # Format code
306
+ npm run format
307
+ ```
308
+
309
+ ## Author
310
+
311
+ **Velocity BPA**
312
+ - Website: [velobpa.com](https://velobpa.com)
313
+ - GitHub: [Velocity-BPA](https://github.com/Velocity-BPA)
314
+
315
+ ## Licensing
316
+
317
+ This n8n community node is licensed under the **Business Source License 1.1**.
318
+
319
+ ### Free Use
320
+ Permitted for personal, educational, research, and internal business use.
321
+
322
+ ### Commercial Use
323
+ Use of this node within any SaaS, PaaS, hosted platform, managed service,
324
+ or paid automation offering requires a commercial license.
325
+
326
+ For licensing inquiries:
327
+ **licensing@velobpa.com**
328
+
329
+ See [LICENSE](LICENSE), [COMMERCIAL_LICENSE.md](COMMERCIAL_LICENSE.md), and [LICENSING_FAQ.md](LICENSING_FAQ.md) for details.
330
+
331
+ ## Contributing
332
+
333
+ 1. Fork the repository
334
+ 2. Create a feature branch
335
+ 3. Make your changes
336
+ 4. Run tests and linting
337
+ 5. Submit a pull request
338
+
339
+ ## Support
340
+
341
+ - **Documentation**: [Bybit V5 API Docs](https://bybit-exchange.github.io/docs/v5/intro)
342
+ - **Issues**: [GitHub Issues](https://github.com/Velocity-BPA/n8n-nodes-bybit/issues)
343
+ - **Commercial Support**: licensing@velobpa.com
344
+
345
+ ## Acknowledgments
346
+
347
+ - [n8n](https://n8n.io) - Workflow automation platform
348
+ - [Bybit](https://bybit.com) - Cryptocurrency exchange
349
+ - The open-source community
350
+
351
+ ---
352
+
353
+ **Disclaimer**: This node is not officially affiliated with Bybit. Use at your own risk. Always test on testnet first and never risk more than you can afford to lose.
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class BybitApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
10
+ //# sourceMappingURL=BybitApi.credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BybitApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/BybitApi.credentials.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACX,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,MAAM,cAAc,CAAC;AAEtB,qBAAa,QAAS,YAAW,eAAe;IAC/C,IAAI,SAAc;IAClB,WAAW,SAAe;IAC1B,gBAAgB,SAAoD;IAEpE,UAAU,EAAE,eAAe,EAAE,CA2C3B;IAEF,YAAY,EAAE,oBAAoB,CAGhC;IAEF,IAAI,EAAE,sBAAsB,CAM1B;CACF"}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Velocity BPA, LLC
4
+ * Licensed under the Business Source License 1.1
5
+ * Commercial use requires a separate commercial license.
6
+ * See LICENSE file for details.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.BybitApi = void 0;
10
+ class BybitApi {
11
+ constructor() {
12
+ this.name = 'bybitApi';
13
+ this.displayName = 'Bybit API';
14
+ this.documentationUrl = 'https://bybit-exchange.github.io/docs/v5/intro';
15
+ this.properties = [
16
+ {
17
+ displayName: 'API Key',
18
+ name: 'apiKey',
19
+ type: 'string',
20
+ typeOptions: { password: true },
21
+ default: '',
22
+ required: true,
23
+ description: 'Your Bybit API key',
24
+ },
25
+ {
26
+ displayName: 'API Secret',
27
+ name: 'apiSecret',
28
+ type: 'string',
29
+ typeOptions: { password: true },
30
+ default: '',
31
+ required: true,
32
+ description: 'Your Bybit API secret',
33
+ },
34
+ {
35
+ displayName: 'Environment',
36
+ name: 'environment',
37
+ type: 'options',
38
+ options: [
39
+ {
40
+ name: 'Mainnet',
41
+ value: 'mainnet',
42
+ },
43
+ {
44
+ name: 'Testnet',
45
+ value: 'testnet',
46
+ },
47
+ ],
48
+ default: 'mainnet',
49
+ description: 'Select the Bybit environment',
50
+ },
51
+ {
52
+ displayName: 'Receive Window (ms)',
53
+ name: 'recvWindow',
54
+ type: 'number',
55
+ default: 5000,
56
+ description: 'Time window for request validity in milliseconds',
57
+ },
58
+ ];
59
+ this.authenticate = {
60
+ type: 'generic',
61
+ properties: {},
62
+ };
63
+ this.test = {
64
+ request: {
65
+ baseURL: '={{$credentials.environment === "testnet" ? "https://api-testnet.bybit.com" : "https://api.bybit.com"}}',
66
+ url: '/v5/market/time',
67
+ method: 'GET',
68
+ },
69
+ };
70
+ }
71
+ }
72
+ exports.BybitApi = BybitApi;
73
+ //# sourceMappingURL=BybitApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BybitApi.credentials.js","sourceRoot":"","sources":["../../credentials/BybitApi.credentials.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AASH,MAAa,QAAQ;IAArB;QACC,SAAI,GAAG,UAAU,CAAC;QAClB,gBAAW,GAAG,WAAW,CAAC;QAC1B,qBAAgB,GAAG,gDAAgD,CAAC;QAEpE,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,oBAAoB;aACjC;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,uBAAuB;aACpC;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;qBAChB;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;qBAChB;iBACD;gBACD,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,8BAA8B;aAC3C;YACD;gBACC,WAAW,EAAE,qBAAqB;gBAClC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,kDAAkD;aAC/D;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE,EAAE;SACd,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,yGAAyG;gBAClH,GAAG,EAAE,iBAAiB;gBACtB,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AA9DD,4BA8DC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * n8n-nodes-bybit
3
+ *
4
+ * [Velocity BPA Licensing Notice]
5
+ * This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).
6
+ * Use of this node by for-profit organizations in production environments requires
7
+ * a commercial license from Velocity BPA.
8
+ * For licensing information, visit https://velobpa.com/licensing or contact licensing@velobpa.com.
9
+ */
10
+ export { BybitApi } from './credentials/BybitApi.credentials';
11
+ export { Bybit } from './nodes/Bybit/Bybit.node';
12
+ export { BybitTrigger } from './nodes/Bybit/BybitTrigger.node';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAG9D,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * n8n-nodes-bybit
4
+ *
5
+ * [Velocity BPA Licensing Notice]
6
+ * This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).
7
+ * Use of this node by for-profit organizations in production environments requires
8
+ * a commercial license from Velocity BPA.
9
+ * For licensing information, visit https://velobpa.com/licensing or contact licensing@velobpa.com.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BybitTrigger = exports.Bybit = exports.BybitApi = void 0;
13
+ // Export credentials
14
+ var BybitApi_credentials_1 = require("./credentials/BybitApi.credentials");
15
+ Object.defineProperty(exports, "BybitApi", { enumerable: true, get: function () { return BybitApi_credentials_1.BybitApi; } });
16
+ // Export nodes
17
+ var Bybit_node_1 = require("./nodes/Bybit/Bybit.node");
18
+ Object.defineProperty(exports, "Bybit", { enumerable: true, get: function () { return Bybit_node_1.Bybit; } });
19
+ var BybitTrigger_node_1 = require("./nodes/Bybit/BybitTrigger.node");
20
+ Object.defineProperty(exports, "BybitTrigger", { enumerable: true, get: function () { return BybitTrigger_node_1.BybitTrigger; } });
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH,qBAAqB;AACrB,2EAA8D;AAArD,gHAAA,QAAQ,OAAA;AAEjB,eAAe;AACf,uDAAiD;AAAxC,mGAAA,KAAK,OAAA;AACd,qEAA+D;AAAtD,iHAAA,YAAY,OAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Bybit n8n Node
3
+ *
4
+ * [Velocity BPA Licensing Notice]
5
+ * This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).
6
+ * Use of this node by for-profit organizations in production environments requires
7
+ * a commercial license from Velocity BPA.
8
+ * For licensing information, visit https://velobpa.com/licensing or contact licensing@velobpa.com.
9
+ */
10
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
11
+ export declare class Bybit implements INodeType {
12
+ description: INodeTypeDescription;
13
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
14
+ }
15
+ //# sourceMappingURL=Bybit.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bybit.node.d.ts","sourceRoot":"","sources":["../../../nodes/Bybit/Bybit.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACX,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAEpB,MAAM,cAAc,CAAC;AA6BtB,qBAAa,KAAM,YAAW,SAAS;IACtC,WAAW,EAAE,oBAAoB,CA+G/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAmEvE"}