Add support for get/set/rm of exchange pairs via gRPC

This commit is contained in:
Adrian Gallagher
2019-09-06 11:47:58 +10:00
parent c041c990a9
commit 0fcf867697
13 changed files with 1320 additions and 287 deletions

View File

@@ -145,6 +145,32 @@
]
}
},
"/v1/disableexchangepair": {
"post": {
"operationId": "DisableExchangePair",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericExchangeNameResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcExchangePairRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/disablesubsystem": {
"get": {
"operationId": "DisableSubsystem",
@@ -195,6 +221,32 @@
]
}
},
"/v1/enableexchangepair": {
"post": {
"operationId": "EnableExchangePair",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericExchangeNameResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcExchangePairRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/enablesubsystem": {
"get": {
"operationId": "EnableSubsystem",
@@ -407,6 +459,32 @@
]
}
},
"/v1/getexchangepairs": {
"post": {
"operationId": "GetExchangePairs",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetExchangePairsResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGetExchangePairsRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getexchanges": {
"get": {
"operationId": "GetExchanges",
@@ -1129,6 +1207,20 @@
}
}
},
"gctrpcExchangePairRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"asset_type": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
}
}
},
"gctrpcForexProvider": {
"type": "object",
"properties": {
@@ -1353,6 +1445,28 @@
}
}
},
"gctrpcGetExchangePairsRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"asset": {
"type": "string"
}
}
},
"gctrpcGetExchangePairsResponse": {
"type": "object",
"properties": {
"supported_assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gctrpcPairsSupported"
}
}
}
},
"gctrpcGetExchangesResponse": {
"type": "object",
"properties": {