From 9cab470e5a8b86e99803e5ef1567d1df2c6c9053 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Wed, 11 Mar 2026 14:34:10 +0000 Subject: [PATCH] Add component definition: xchange --- component.json | 173 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..795d036 --- /dev/null +++ b/component.json @@ -0,0 +1,173 @@ +{ + "component": { + "kind": "component", + "name": "xchange", + "title": "XChange", + "description": "Access market data and trade on Bitcoin and Altcoin exchanges.", + "deprecated": false, + "firstVersion": "2.21.0", + "label": "blockchain", + "javaType": "org.apache.camel.component.xchange.XChangeComponent", + "supportLevel": "Stable", + "groupId": "org.apache.camel", + "artifactId": "camel-xchange", + "version": "4.10.2", + "scheme": "xchange", + "extendsScheme": "", + "syntax": "xchange:name", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": true, + "lenientProperties": false, + "browsable": false, + "remote": true + }, + "headers": { + "Currency": { + "index": 0, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "org.knowm.xchange.currency.Currency", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The target currency", + "constantName": "org.apache.camel.component.xchange.XChangeConfiguration#HEADER_CURRENCY" + }, + "CurrencyPair": { + "index": 1, + "kind": "header", + "displayName": "", + "group": "producer", + "label": "", + "required": false, + "javaType": "org.knowm.xchange.currency.CurrencyPair", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The target currency pair", + "constantName": "org.apache.camel.component.xchange.XChangeConfiguration#HEADER_CURRENCY_PAIR" + } + }, + "properties": { + "name": { + "index": 0, + "kind": "path", + "displayName": "Name", + "group": "producer", + "label": "", + "required": true, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "configurationClass": "org.apache.camel.component.xchange.XChangeConfiguration", + "configurationField": "configuration", + "description": "The exchange to connect to" + }, + "currency": { + "index": 1, + "kind": "parameter", + "displayName": "Currency", + "group": "producer", + "label": "", + "required": false, + "type": "object", + "javaType": "org.knowm.xchange.currency.Currency", + "deprecated": false, + "autowired": false, + "secret": false, + "configurationClass": "org.apache.camel.component.xchange.XChangeConfiguration", + "configurationField": "configuration", + "description": "The currency" + }, + "currencyPair": { + "index": 2, + "kind": "parameter", + "displayName": "Currency Pair", + "group": "producer", + "label": "", + "required": false, + "type": "string", + "javaType": "java.lang.String", + "deprecated": false, + "autowired": false, + "secret": false, + "configurationClass": "org.apache.camel.component.xchange.XChangeConfiguration", + "configurationField": "configuration", + "description": "The currency pair" + }, + "method": { + "index": 3, + "kind": "parameter", + "displayName": "Method", + "group": "producer", + "label": "", + "required": true, + "type": "object", + "javaType": "org.apache.camel.component.xchange.XChangeConfiguration.XChangeMethod", + "enum": [ + "balances", + "fundingHistory", + "wallets", + "currencies", + "currencyMetaData", + "currencyPairs", + "currencyPairMetaData", + "ticker" + ], + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "configurationClass": "org.apache.camel.component.xchange.XChangeConfiguration", + "configurationField": "configuration", + "description": "The method to execute" + }, + "service": { + "index": 4, + "kind": "parameter", + "displayName": "Service", + "group": "producer", + "label": "", + "required": true, + "type": "object", + "javaType": "org.apache.camel.component.xchange.XChangeConfiguration.XChangeService", + "enum": [ + "marketdata", + "metadata", + "account" + ], + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "configurationClass": "org.apache.camel.component.xchange.XChangeConfiguration", + "configurationField": "configuration", + "description": "The service to call" + }, + "lazyStartProducer": { + "index": 5, + "kind": "parameter", + "displayName": "Lazy Start Producer", + "group": "producer (advanced)", + "label": "producer,advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing." + } + } +} \ No newline at end of file