diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml index 77f2a50631dd..1ab71a58ccd6 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -286,7 +286,7 @@ - name: Coin API sourceDefinitionId: 919984ef-53a2-479b-8ffe-9c1ddb9fc3f3 dockerRepository: airbyte/source-coin-api - dockerImageTag: 0.1.0 + dockerImageTag: 0.1.1 documentationUrl: https://docs.airbyte.com/integrations/sources/coin-api sourceType: api releaseStage: alpha diff --git a/airbyte-config/init/src/main/resources/seed/source_specs.yaml b/airbyte-config/init/src/main/resources/seed/source_specs.yaml index 9c96ad5a4ac2..1fbaa1a1d9ed 100644 --- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml @@ -2572,7 +2572,7 @@ supportsNormalization: false supportsDBT: false supported_destination_sync_modes: [] -- dockerImage: "airbyte/source-coin-api:0.1.0" +- dockerImage: "airbyte/source-coin-api:0.1.1" spec: documentationUrl: "https://docs.airbyte.com/integrations/sources/coin-api" connectionSpecification: diff --git a/airbyte-integrations/connectors/source-coin-api/Dockerfile b/airbyte-integrations/connectors/source-coin-api/Dockerfile index 9d1cfc2f242a..d84bd8a41fba 100644 --- a/airbyte-integrations/connectors/source-coin-api/Dockerfile +++ b/airbyte-integrations/connectors/source-coin-api/Dockerfile @@ -34,5 +34,5 @@ COPY source_coin_api ./source_coin_api ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.1.0 +LABEL io.airbyte.version=0.1.1 LABEL io.airbyte.name=airbyte/source-coin-api diff --git a/airbyte-integrations/connectors/source-coin-api/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-coin-api/integration_tests/configured_catalog.json index b9a1a6787615..c95bc7fb1021 100644 --- a/airbyte-integrations/connectors/source-coin-api/integration_tests/configured_catalog.json +++ b/airbyte-integrations/connectors/source-coin-api/integration_tests/configured_catalog.json @@ -17,6 +17,15 @@ }, "sync_mode": "full_refresh", "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "quotes_historical_data", + "json_schema": {}, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" } ] } diff --git a/airbyte-integrations/connectors/source-coin-api/source_coin_api/coin_api.yaml b/airbyte-integrations/connectors/source-coin-api/source_coin_api/coin_api.yaml index 6031b0ced17c..cb41f7aa499c 100644 --- a/airbyte-integrations/connectors/source-coin-api/source_coin_api/coin_api.yaml +++ b/airbyte-integrations/connectors/source-coin-api/source_coin_api/coin_api.yaml @@ -1,4 +1,4 @@ -version: "0.1.0" +version: "0.1.1" definitions: selector: @@ -58,11 +58,18 @@ definitions: primary_key: "uuid" path: "/trades/{{ config['symbol_id'] }}/history" stream_cursor_field: "time_exchange" + quotes_historical_data_stream: + $ref: "*ref(definitions.base_stream)" + $options: + name: "quotes_historical_data" + path: "/quotes/{{ config['symbol_id'] }}/history" streams: - "*ref(definitions.ohlcv_historical_data_stream)" - "*ref(definitions.trades_historical_data_stream)" + - "*ref(definitions.quotes_historical_data_stream)" check: stream_names: - "ohlcv_historical_data" + - "quotes_historical_data" diff --git a/airbyte-integrations/connectors/source-coin-api/source_coin_api/schemas/quotes_historical_data.json b/airbyte-integrations/connectors/source-coin-api/source_coin_api/schemas/quotes_historical_data.json new file mode 100644 index 000000000000..d050df17a7bb --- /dev/null +++ b/airbyte-integrations/connectors/source-coin-api/source_coin_api/schemas/quotes_historical_data.json @@ -0,0 +1,29 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "symbol_id": { + "type": ["null", "string"] + }, + "time_exchange": { + "type": ["null", "string"], + "format": "date-time" + }, + "time_coinapi": { + "type": ["null", "string"], + "format": "date-time" + }, + "ask_price": { + "type": ["null", "number"] + }, + "ask_size": { + "type": ["null", "number"] + }, + "big_price": { + "type": ["null", "number"] + }, + "big_size": { + "type": ["null", "number"] + } + } +} diff --git a/docs/integrations/sources/coin-api.md b/docs/integrations/sources/coin-api.md index 435efe4521ff..5ef3447b5f2b 100644 --- a/docs/integrations/sources/coin-api.md +++ b/docs/integrations/sources/coin-api.md @@ -50,4 +50,5 @@ The following fields are required fields for the connector to work: | Version | Date | Pull Request | Subject | |:--------|:-----------|:---------------------------------------------------------|:-----------| +| 0.1.1 | 2022-12-19 | [20600](https://github.com/airbytehq/airbyte/pull/20600) | Add quotes historical data stream| | 0.1.0 | 2022-10-21 | [18302](https://github.com/airbytehq/airbyte/pull/18302) | New source |