From bedf9287747b6e974e84cd8c5d7ec27ac31bbc19 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Mon, 12 Oct 2026 02:44:18 +0000 Subject: [PATCH] Add component definition: xchange --- component.json | 275 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 275 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..4a08d8e --- /dev/null +++ b/component.json @@ -0,0 +1,275 @@ +{ + "component": { + "kind": "component", + "name": "xchange", + "title": "XChange", + "description": "Access market data and trade on Bitcoin and Altcoin exchanges.", + "deprecated": false, + "firstVersion": "1.1.0", + "label": "blockchain", + "javaType": "org.apache.camel.component.xchange.XChangeComponent", + "supportLevel": "Stable", + "nativeSupported": true, + "metadata": { + "quarkusVersion": "3.36.0", + "camelArtifact": "org.apache.camel:camel-xchange", + "camelVersion": "4.20.0" + }, + "groupId": "org.apache.camel.quarkus", + "artifactId": "camel-quarkus-xchange", + "version": "4.20.0 (CEQ 3.36.0)", + "scheme": "xchange", + "extendsScheme": "", + "syntax": "xchange:name", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": true, + "lenientProperties": false, + "browsable": false, + "remote": true + }, + "componentProperties": { + "lazyStartProducer": { + "index": 0, + "kind": "property", + "displayName": "Lazy Start Producer", + "group": "producer", + "label": "producer", + "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." + }, + "autowiredEnabled": { + "index": 1, + "kind": "property", + "displayName": "Autowired Enabled", + "group": "advanced", + "label": "advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": true, + "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc." + } + }, + "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": "enum", + "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": "enum", + "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." + } + }, + "propertiesSchema": { + "properties": { + "name": { + "title": "Name", + "description": "The exchange to connect to", + "type": "string", + "$comment": "group:producer" + }, + "currency": { + "title": "Currency", + "description": "The currency", + "type": "string", + "$comment": "group:producer", + "format": "bean:org.knowm.xchange.currency.Currency" + }, + "currencyPair": { + "title": "Currency Pair", + "description": "The currency pair", + "type": "string", + "$comment": "group:producer" + }, + "method": { + "title": "Method", + "description": "The method to execute", + "type": "string", + "enum": [ + "balances", + "fundingHistory", + "wallets", + "currencies", + "currencyMetaData", + "currencyPairs", + "currencyPairMetaData", + "ticker" + ], + "$comment": "group:producer" + }, + "service": { + "title": "Service", + "description": "The service to call", + "type": "string", + "enum": [ + "marketdata", + "metadata", + "account" + ], + "$comment": "group:producer" + }, + "lazyStartProducer": { + "title": "Lazy Start Producer", + "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.", + "type": "boolean", + "$comment": "group:producer (advanced)", + "default": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "name", + "method", + "service" + ] + } +} \ No newline at end of file