mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 23:16:53 +00:00
Add orderbook calculator and verify func
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user