Add orderbook calculator and verify func

This commit is contained in:
Adrian Gallagher
2019-06-30 22:09:19 +10:00
parent 7dbfcb311c
commit 7112a89491
14 changed files with 1452 additions and 275 deletions

View File

@@ -732,6 +732,32 @@
]
}
},
"/v1/simulateorder": {
"post": {
"operationId": "SimulateOrder",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcSimulateOrderResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcSimulateOrderRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/submitorder": {
"post": {
"operationId": "SubmitOrder",
@@ -758,6 +784,32 @@
]
}
},
"/v1/whalebomb": {
"post": {
"operationId": "WhaleBomb",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcSimulateOrderResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcWhaleBombRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/withdrawcryptofunds": {
"post": {
"operationId": "WithdrawCryptocurrencyFunds",
@@ -1690,6 +1742,54 @@
"gctrpcRemovePortfolioAddressResponse": {
"type": "object"
},
"gctrpcSimulateOrderRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"amount": {
"type": "number",
"format": "double"
},
"side": {
"type": "string"
}
}
},
"gctrpcSimulateOrderResponse": {
"type": "object",
"properties": {
"orders": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcOrderbookItem"
}
},
"amount": {
"type": "number",
"format": "double"
},
"minimum_price": {
"type": "number",
"format": "double"
},
"maximum_price": {
"type": "number",
"format": "double"
},
"percentage_gain_loss": {
"type": "number",
"format": "double"
},
"status": {
"type": "string"
}
}
},
"gctrpcSubmitOrderRequest": {
"type": "object",
"properties": {
@@ -1787,6 +1887,24 @@
}
}
},
"gctrpcWhaleBombRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"price_target": {
"type": "number",
"format": "double"
},
"side": {
"type": "string"
}
}
},
"gctrpcWithdrawCurrencyRequest": {
"type": "object",
"properties": {