mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-09 07:26:48 +00:00
Add support for get/set/rm of exchange pairs via gRPC
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user