Fixed rpc.proto and regenerated files (#457)

This commit is contained in:
David Merkel
2020-03-01 23:36:15 +01:00
committed by GitHub
parent 31fe74a380
commit 9d49184bc6
3 changed files with 433 additions and 49 deletions

View File

@@ -20,6 +20,12 @@
"schema": {
"$ref": "#/definitions/gctrpcAddEventResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -46,6 +52,12 @@
"schema": {
"$ref": "#/definitions/gctrpcAddPortfolioAddressResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -72,6 +84,12 @@
"schema": {
"$ref": "#/definitions/gctrpcCancelAllOrdersResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -98,6 +116,12 @@
"schema": {
"$ref": "#/definitions/gctrpcCancelOrderResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -124,6 +148,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGenericExchangeNameResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -150,6 +180,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGenericExchangeNameResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -176,6 +212,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGenericSubsystemResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -200,6 +242,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGenericExchangeNameResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -226,6 +274,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGenericExchangeNameResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -252,6 +306,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGenericSubsystemResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -276,6 +336,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptGenericResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -302,6 +368,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptGenericResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -344,6 +416,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptQueryResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -386,6 +464,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptQueryResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -412,6 +496,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptStatusResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -428,6 +518,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptStatusResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -454,6 +550,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptGenericResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -480,6 +582,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetAccountInfoResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -502,7 +610,22 @@
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"$ref": "#/x-stream-definitions/gctrpcGetAccountInfoResponse"
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcGetAccountInfoResponse"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of gctrpcGetAccountInfoResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
@@ -528,6 +651,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetAuditEventResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -578,6 +707,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetCommunicationRelayersResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -594,6 +729,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetConfigResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -610,6 +751,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetCryptocurrencyDepositAddressResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -636,6 +783,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetCryptocurrencyDepositAddressesResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -662,6 +815,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetEventsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -678,6 +837,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetExchangeInfoResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -700,7 +865,22 @@
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"$ref": "#/x-stream-definitions/gctrpcOrderbookResponse"
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcOrderbookResponse"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of gctrpcOrderbookResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
@@ -726,6 +906,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetExchangeOTPReponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -750,6 +936,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetExchangeOTPsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -766,6 +958,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetExchangePairsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -792,6 +990,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetExchangesResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -815,7 +1019,22 @@
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"$ref": "#/x-stream-definitions/gctrpcTickerResponse"
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcTickerResponse"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of gctrpcTickerResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
@@ -841,6 +1060,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetForexProvidersResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -857,6 +1082,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetForexRatesResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -873,6 +1104,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetHistoricCandlesResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -929,6 +1166,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetInfoResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -945,6 +1188,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetLoggerDetailsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -969,6 +1218,12 @@
"schema": {
"$ref": "#/definitions/gctrpcOrderDetails"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -995,6 +1250,12 @@
"schema": {
"$ref": "#/definitions/gctrpcOrderbookResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1021,6 +1282,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetOrderbooksResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -1035,7 +1302,22 @@
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"$ref": "#/x-stream-definitions/gctrpcOrderbookResponse"
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcOrderbookResponse"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of gctrpcOrderbookResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
@@ -1085,6 +1367,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetOrdersResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1111,6 +1399,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetPortfolioResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -1127,6 +1421,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetPortfolioSummaryResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -1143,6 +1443,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetRPCEndpointsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -1159,6 +1465,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetSusbsytemsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -1175,6 +1487,12 @@
"schema": {
"$ref": "#/definitions/gctrpcTickerResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1201,6 +1519,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetTickersResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -1215,7 +1539,22 @@
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"$ref": "#/x-stream-definitions/gctrpcTickerResponse"
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcTickerResponse"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of gctrpcTickerResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
@@ -1265,6 +1604,12 @@
"schema": {
"$ref": "#/definitions/gctrpcRemoveEventResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1291,6 +1636,12 @@
"schema": {
"$ref": "#/definitions/gctrpcRemovePortfolioAddressResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1317,6 +1668,12 @@
"schema": {
"$ref": "#/definitions/gctrpcGetLoggerDetailsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1343,6 +1700,12 @@
"schema": {
"$ref": "#/definitions/gctrpcSimulateOrderResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1369,6 +1732,12 @@
"schema": {
"$ref": "#/definitions/gctrpcSubmitOrderResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1395,6 +1764,12 @@
"schema": {
"$ref": "#/definitions/gctrpcSimulateOrderResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1421,6 +1796,12 @@
"schema": {
"$ref": "#/definitions/gctrpcWithdrawalEventsByExchangeResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1447,6 +1828,12 @@
"schema": {
"$ref": "#/definitions/gctrpcWithdrawalEventsByExchangeResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1473,6 +1860,12 @@
"schema": {
"$ref": "#/definitions/gctrpcWithdrawResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -1499,6 +1892,12 @@
"schema": {
"$ref": "#/definitions/gctrpcWithdrawResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -3054,6 +3453,27 @@
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"runtimeStreamError": {
"type": "object",
"properties": {
@@ -3079,43 +3499,5 @@
}
}
}
},
"x-stream-definitions": {
"gctrpcGetAccountInfoResponse": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcGetAccountInfoResponse"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of gctrpcGetAccountInfoResponse"
},
"gctrpcOrderbookResponse": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcOrderbookResponse"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of gctrpcOrderbookResponse"
},
"gctrpcTickerResponse": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcTickerResponse"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of gctrpcTickerResponse"
}
}
}