Created
November 22, 2021 23:48
-
-
Save andycmaj/f701aba04a00cf3e0290a71bdafa1857 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asyncapi: '2.0.0' | |
id: 'urn:andy.io.equities.level1' | |
info: | |
title: Level1 Avro API | |
version: 0.1.1 | |
description: AsyncAPI for Level1 events defined using Avro | |
defaultContentType: application/json | |
servers: | |
$ref: "../servers.yaml" | |
tags: | |
- name: level1 | |
channels: | |
oms.marketdata.level1.in: | |
description: The topic on which level1 events may be consumed | |
subscribe: | |
summary: Receive informations about level1 | |
description: Level1 | |
operationId: receivedLevel1 | |
message: | |
description: An event describing that a level1. | |
bindings: | |
kafka: | |
key: | |
type: string | |
description: id of the level1 | |
contentType: avro/binary | |
schemaFormat: application/vnd.apache.avro+json;version=1.9.0 | |
payload: | |
$ref: './avro/md_level1.avsc' | |
examples: | |
- level1: | |
summary: Example Level1 | |
payload: |- | |
{"id": "{{randomString(32)}}", "instrument": "{{randomString(4)}}", "bid": {{randomInt(25, 50)}}, "ask": {{randomInt(26, 51)}}, "last": {{randomInt(26, 51)}}} | |
- level1.1: | |
summary: Example Level1 | |
payload: |- | |
{"id": "{{randomString(32)}}", "instrument": "IBM.US", "bid": 10, "ask": 11, "last": {{randomInt(10, 11)}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment