Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix websocket-gemini message's payload example #884

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions examples/websocket-gemini.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ components:
events:
- type: change
side: bid
price: '54350.40'
remaining: '0.002'
delta: '0.002'
price: 54350.40
remaining: 0.002
delta: 0.002
reason: place
- name: heartbeatMessage
summary: Example of additional heartbeat message when you enable them.
Expand Down Expand Up @@ -158,12 +158,10 @@ components:
events:
$ref: '#/components/schemas/events'
timestamp:
type: string
format: date-time
type: number
description: The timestamp in seconds for this group of events (included for compatibility reasons). We recommend using the timestampms field instead.
timestampms:
type: string
format: time
type: number
description: The timestamp in milliseconds for this group of events.
required:
- type
Expand Down Expand Up @@ -194,7 +192,7 @@ components:
enum: ['trade', 'change', 'auction, block_trade']
price:
type: number
multipleOf: 1.000
multipleOf: 0.01
description: The price of this order book entry.
side:
type: string
Expand All @@ -205,9 +203,7 @@ components:
description: Indicates why the change has occurred. initial is for the initial response message, which will show the entire existing state of the order book.
remaining:
type: number
multipleOf: 1.000
description: The quantity remaining at that price level after this change occurred. May be zero if all orders at this price level have been filled or canceled.
delta:
type: number
multipleOf: 1.000
description: The quantity changed. May be negative, if an order is filled or canceled. For initial messages, delta will equal remaining.