Skip to content

Commit f570274

Browse files
John DrefahlJohn Drefahl
authored andcommitted
Initial commit: n8n Deribit cryptocurrency derivatives node
Features: - Authentication: OAuth 2.0 client credentials with token caching - Account: Account summary, positions, subaccounts, transaction log - Trading: Buy/sell orders (limit, market, stop), cancel, edit, close positions - Market Data: Tickers, order books, OHLCV, trades, funding rates, volatility - Options: Mark prices and option summaries with Greeks - Portfolio: Portfolio margins and simulation - Wallet: Deposits, withdrawals, internal transfers - Block Trade: Execute and verify block trades - Combo: Combo instrument trading - Triggers: Order fills, position changes, price alerts, settlements
0 parents  commit f570274

36 files changed

+15596
-0
lines changed

.eslintrc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: {
5+
ecmaVersion: 2021,
6+
sourceType: 'module',
7+
project: './tsconfig.json',
8+
},
9+
plugins: ['@typescript-eslint', 'n8n-nodes-base'],
10+
extends: [
11+
'eslint:recommended',
12+
'plugin:@typescript-eslint/recommended',
13+
'plugin:n8n-nodes-base/community',
14+
'prettier',
15+
],
16+
env: {
17+
node: true,
18+
es2021: true,
19+
jest: true,
20+
},
21+
rules: {
22+
'@typescript-eslint/no-explicit-any': 'warn',
23+
'@typescript-eslint/explicit-function-return-type': 'off',
24+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
25+
'n8n-nodes-base/node-class-description-inputs-wrong-regular-node': 'off',
26+
'n8n-nodes-base/node-class-description-outputs-wrong': 'off',
27+
},
28+
ignorePatterns: ['dist/', 'node_modules/', 'test/', '*.js'],
29+
};

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
dist/
6+
7+
# IDE
8+
.idea/
9+
.vscode/
10+
*.swp
11+
*.swo
12+
*~
13+
14+
# OS
15+
.DS_Store
16+
Thumbs.db
17+
18+
# Logs
19+
*.log
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*
23+
24+
# Test coverage
25+
coverage/
26+
27+
# Environment
28+
.env
29+
.env.local
30+
.env.*.local
31+
32+
# Temporary files
33+
*.tmp
34+
*.temp
35+
.cache/
36+
37+
# n8n
38+
.n8n/
39+
40+
# Package locks (optional - remove if you want to commit)
41+
# package-lock.json
42+
# yarn.lock

.npmignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Source files
2+
credentials/
3+
nodes/
4+
*.ts
5+
!dist/**/*.d.ts
6+
7+
# Config files
8+
.eslintrc.js
9+
.prettierrc
10+
tsconfig.json
11+
gulpfile.js
12+
jest.config.js
13+
14+
# Tests
15+
test/
16+
coverage/
17+
*.test.ts
18+
*.spec.ts
19+
20+
# Development
21+
.git/
22+
.github/
23+
.vscode/
24+
.idea/
25+
26+
# Scripts
27+
scripts/
28+
29+
# Documentation source
30+
docs/
31+
32+
# Misc
33+
*.log
34+
.DS_Store
35+
Thumbs.db
36+
.env*

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"printWidth": 100,
6+
"tabWidth": 2,
7+
"useTabs": false,
8+
"bracketSpacing": true,
9+
"arrowParens": "always",
10+
"endOfLine": "lf"
11+
}

COMMERCIAL_LICENSE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Commercial License
2+
3+
Velocity BPA, LLC offers commercial licenses for its n8n community nodes.
4+
5+
## When a Commercial License Is Required
6+
7+
A commercial license is required if you:
8+
- Use this node within a SaaS, PaaS, or hosted platform that is sold or monetized
9+
- Offer this node as part of a managed services or consulting engagement
10+
- Bundle or redistribute this node with a paid product
11+
- Resell, sublicense, or white-label this node
12+
- Embed this node into a commercial automation or integration platform
13+
14+
## What the Commercial License Provides
15+
16+
- Legal authorization for commercial deployment
17+
- Organization-wide usage rights
18+
- Rights to deploy across multiple environments
19+
- Optional priority support and maintenance
20+
- Optional custom development or feature extensions
21+
22+
## Licensing Model
23+
24+
Licenses are issued on a per-organization basis.
25+
26+
Enterprise, OEM, and platform licensing terms are available upon request.
27+
28+
## Contact
29+
30+
Email: licensing@velobpa.com
31+
Website: https://velobpa.com

LICENSE

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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/

LICENSING_FAQ.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Licensing FAQ
2+
3+
### Is internal SaaS infrastructure considered internal use?
4+
No. If the infrastructure supports a revenue-generating service,
5+
it is considered commercial use.
6+
7+
### What if customers never see the node?
8+
Visibility is irrelevant. Revenue enablement constitutes commercial use.
9+
10+
### What if we are a startup?
11+
Startups are commercial entities and require a commercial license.
12+
13+
### What if we only use one workflow?
14+
Scope does not change license requirements.
15+
16+
### Do proof-of-concepts require a license?
17+
Internal, non-customer-facing POCs are permitted.
18+
Production SaaS deployments require a license.

0 commit comments

Comments
 (0)