Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 11 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,9 @@
],
"default": "iqr"
}
},
{
"$ref": "#/components/parameters/NetworkQuery"
}
],
"responses": {
Expand Down Expand Up @@ -3929,6 +3932,7 @@
"assetA",
"assetB",
"pairKey",
"network",
"vwap",
"windowMinutes",
"source",
Expand All @@ -3950,6 +3954,13 @@
"pairKey": {
"type": "string"
},
"network": {
"type": "string",
"enum": [
"testnet",
"mainnet"
]
},
"vwap": {
"type": "number"
},
Expand Down
6 changes: 5 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ paths:
type: string
enum: [iqr, modified_zscore]
default: iqr
- $ref: '#/components/parameters/NetworkQuery'
responses:
'200':
description: VWAP result
Expand Down Expand Up @@ -2536,7 +2537,7 @@ components:

VwapResponse:
type: object
required: [assetA, assetB, pairKey, vwap, windowMinutes, source, startTime, endTime, sampleCount, volumeTotal, outlierRejected, filterMethod]
required: [assetA, assetB, pairKey, network, vwap, windowMinutes, source, startTime, endTime, sampleCount, volumeTotal, outlierRejected, filterMethod]
additionalProperties: false
properties:
assetA:
Expand All @@ -2545,6 +2546,9 @@ components:
type: string
pairKey:
type: string
network:
type: string
enum: [testnet, mainnet]
vwap:
type: number
windowMinutes:
Expand Down
Loading