Add component definition: xchange

This commit is contained in:
gitea_admin 2026-03-11 14:34:10 +00:00
parent 50eb6d7eec
commit 9cab470e5a

173
component.json Normal file
View File

@ -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."
}
}
}