Files
gocryptotrader/gctrpc/rpc.swagger.json
Ryan O'Hara-Reid c6ad429827 orderbook/buffer: data integrity and resubscription pass (#910)
* orderbook/buffer: data integrity and resubscription pass

* btcmarkets: REMOVE THAT LIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIINE!!!!!!!!!!!!!!!!!

* buffer: reinstate publish, refaactor, invalidate more and comments

* buffer/orderbook: improve update and snapshot performance. Move Update type to orderbook package to util. pointer through entire function calls. (cleanup). Change action string to uint8 for easier comparison. Add parsing helper. Update current test benchmark comments.

* dispatch: change publish func to variadic id param

* dispatch: remove sender receiver wait time as this adds overhead and complexity. update tests.

* dispatch: don't create pointers for every job container

* rpcserver: fix assertion issues with data publishing change

* linter: fixes

* glorious: nits addr

* depth: change validation handling to incorporate and store err

* linter: fix more issues

* dispatch: fix race

* travis: update before fetching

* depth: wrap and return wrapped error in invalidate call and fix tests

* btcmarkets: fix commenting

* workflow: check

* workflow: check

* orderbook: check error

* buffer/depth: return invalidation error and fix tests

* gctcli: display errors on orderbook streams

* buffer: remove unused types

* orderbook/bitmex: shift function to bitmex

* orderbook: Add specific comments to unexported functions that don't have locking require locking.

* orderbook: restrict published data functionality to orderbook.Outbound interface

* common: add assertion failure helper for error

* dispatch: remove atomics, add mutex protection, remove add/remove worker, redo main tests

* dispatch: export function

* engine: revert and change sub logger to manager

* engine: remove old test

* dispatch: add common variable ;)

* btcmarket: don't overflow int in tests on 32bit systems

* ci: force 1.17.7 usage for go

* Revert "ci: force 1.17.7 usage for go"

This reverts commit af2f95563bf218cf2b9f36a9fcf3258e2c6a2d91.

* golangci: bump version add and remove linter items

* Revert "golangci: bump version add and remove linter items"

This reverts commit 3c98bffc9d030e39faca0387ea40c151df2ab06b.

* dispatch: remove unsused mutex from mux

* order: slight optimizations

* nits: glorious

* dispatch: fix regression on uuid generation and input inline with master

* linter: fix

* linter: fix

* glorious: nit - rm slice segration

* account: fix test after merge

* coinbasepro: revert change

* account: close channel instead of needing a receiver, push alert in routine to prepare for waiter.

Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
2022-05-03 12:37:08 +10:00

5719 lines
133 KiB
JSON

{
"swagger": "2.0",
"info": {
"title": "rpc.proto",
"version": "version not set"
},
"tags": [
{
"name": "GoCryptoTrader"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/v1/addevent": {
"post": {
"operationId": "GoCryptoTrader_AddEvent",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcAddEventResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcAddEventRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/addportfolioaddress": {
"post": {
"operationId": "GoCryptoTrader_AddPortfolioAddress",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcAddPortfolioAddressRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/cancelallorders": {
"post": {
"operationId": "GoCryptoTrader_CancelAllOrders",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcCancelAllOrdersResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcCancelAllOrdersRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/cancelbatchorders": {
"post": {
"operationId": "GoCryptoTrader_CancelBatchOrders",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcCancelBatchOrdersResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcCancelBatchOrdersRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/cancelorder": {
"post": {
"operationId": "GoCryptoTrader_CancelOrder",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcCancelOrderRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/converttradestocandles": {
"get": {
"operationId": "GoCryptoTrader_ConvertTradesToCandles",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetHistoricCandlesResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.delimiter",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.base",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.quote",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "assetType",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "start",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "end",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "timeInterval",
"in": "query",
"required": false,
"type": "string",
"format": "int64"
},
{
"name": "sync",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "force",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/currencystatedeposit": {
"get": {
"operationId": "GoCryptoTrader_CurrencyStateDeposit",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "code",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "asset",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/currencystategetall": {
"get": {
"operationId": "GoCryptoTrader_CurrencyStateGetAll",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcCurrencyStateResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/currencystatetrading": {
"get": {
"operationId": "GoCryptoTrader_CurrencyStateTrading",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "code",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "asset",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/currencystatetradingpair": {
"get": {
"operationId": "GoCryptoTrader_CurrencyStateTradingPair",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "asset",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/currencystatewithdraw": {
"get": {
"operationId": "GoCryptoTrader_CurrencyStateWithdraw",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "code",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "asset",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/disableexchange": {
"post": {
"operationId": "GoCryptoTrader_DisableExchange",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGenericExchangeNameRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/disablesubsystem": {
"get": {
"operationId": "GoCryptoTrader_DisableSubsystem",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "subsystem",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/enableexchange": {
"post": {
"operationId": "GoCryptoTrader_EnableExchange",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGenericExchangeNameRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/enablesubsystem": {
"get": {
"operationId": "GoCryptoTrader_EnableSubsystem",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "subsystem",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/findmissingsavedcandleintervals": {
"get": {
"operationId": "GoCryptoTrader_FindMissingSavedCandleIntervals",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcFindMissingIntervalsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchangeName",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "assetType",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.delimiter",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.base",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.quote",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "interval",
"in": "query",
"required": false,
"type": "string",
"format": "int64"
},
{
"name": "start",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "end",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/findmissingsavedtradeintervals": {
"get": {
"operationId": "GoCryptoTrader_FindMissingSavedTradeIntervals",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcFindMissingIntervalsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchangeName",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "assetType",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.delimiter",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.base",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.quote",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "start",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "end",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/gctscript/autoload": {
"post": {
"operationId": "GoCryptoTrader_GCTScriptAutoLoadToggle",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptAutoLoadRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/gctscript/execute": {
"get": {
"operationId": "GoCryptoTrader_GCTScriptExecute",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "script.UUID",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "script.name",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "script.path",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "script.nextRun",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/gctscript/query": {
"get": {
"operationId": "GoCryptoTrader_GCTScriptQuery",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptQueryResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "script.UUID",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "script.name",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "script.path",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "script.nextRun",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/gctscript/read": {
"post": {
"operationId": "GoCryptoTrader_GCTScriptReadScript",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptQueryResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptReadScriptRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/gctscript/status": {
"get": {
"operationId": "GoCryptoTrader_GCTScriptStatus",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptStatusResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/gctscript/stop": {
"post": {
"operationId": "GoCryptoTrader_GCTScriptListAll",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptStatusResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptListAllRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/gctscript/upload": {
"post": {
"operationId": "GoCryptoTrader_GCTScriptUpload",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGCTScriptUploadRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getaccountinfo": {
"get": {
"operationId": "GoCryptoTrader_GetAccountInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetAccountInfoResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "assetType",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getaccountinfostream": {
"get": {
"operationId": "GoCryptoTrader_GetAccountInfoStream",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcGetAccountInfoResponse"
},
"error": {
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of gctrpcGetAccountInfoResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "assetType",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getactivedatahistoryjobs": {
"get": {
"operationId": "GoCryptoTrader_GetActiveDataHistoryJobs",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcDataHistoryJobs"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getauditevent": {
"get": {
"operationId": "GoCryptoTrader_GetAuditEvent",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetAuditEventResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "startDate",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "endDate",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "orderBy",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "limit",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "offset",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getavailabletransferchains": {
"post": {
"operationId": "GoCryptoTrader_GetAvailableTransferChains",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetAvailableTransferChainsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGetAvailableTransferChainsRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getcollateral": {
"get": {
"operationId": "GoCryptoTrader_GetCollateral",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetCollateralResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "asset",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "includeBreakdown",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "calculateOffline",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "includeZeroValues",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getcommunicationrelayers": {
"get": {
"operationId": "GoCryptoTrader_GetCommunicationRelayers",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetCommunicationRelayersResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getconfig": {
"get": {
"operationId": "GoCryptoTrader_GetConfig",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetConfigResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getcryptodepositaddress": {
"post": {
"operationId": "GoCryptoTrader_GetCryptocurrencyDepositAddress",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetCryptocurrencyDepositAddressResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGetCryptocurrencyDepositAddressRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getcryptodepositaddresses": {
"post": {
"operationId": "GoCryptoTrader_GetCryptocurrencyDepositAddresses",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetCryptocurrencyDepositAddressesResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGetCryptocurrencyDepositAddressesRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getdatahistoryjobdetails": {
"get": {
"operationId": "GoCryptoTrader_GetDataHistoryJobDetails",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcDataHistoryJob"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "id",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "nickname",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "fullDetails",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getdatahistoryjobsbetween": {
"get": {
"operationId": "GoCryptoTrader_GetDataHistoryJobsBetween",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcDataHistoryJobs"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "startDate",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "endDate",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getdatahistoryjobsummary": {
"get": {
"operationId": "GoCryptoTrader_GetDataHistoryJobSummary",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcDataHistoryJob"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "id",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "nickname",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "fullDetails",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getevents": {
"get": {
"operationId": "GoCryptoTrader_GetEvents",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetEventsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getexchangeassets": {
"get": {
"operationId": "GoCryptoTrader_GetExchangeAssets",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetExchangeAssetsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getexchangeinfo": {
"get": {
"operationId": "GoCryptoTrader_GetExchangeInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetExchangeInfoResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getexchangeorderbookstream": {
"get": {
"operationId": "GoCryptoTrader_GetExchangeOrderbookStream",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcOrderbookResponse"
},
"error": {
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of gctrpcOrderbookResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getexchangeotp": {
"get": {
"operationId": "GoCryptoTrader_GetExchangeOTPCode",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetExchangeOTPResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getexchangeotps": {
"get": {
"operationId": "GoCryptoTrader_GetExchangeOTPCodes",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetExchangeOTPsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getexchangepairs": {
"post": {
"operationId": "GoCryptoTrader_GetExchangePairs",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetExchangePairsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGetExchangePairsRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getexchanges": {
"get": {
"operationId": "GoCryptoTrader_GetExchanges",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetExchangesResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "enabled",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getexchangetickerstream": {
"get": {
"operationId": "GoCryptoTrader_GetExchangeTickerStream",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcTickerResponse"
},
"error": {
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of gctrpcTickerResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getforexproviders": {
"get": {
"operationId": "GoCryptoTrader_GetForexProviders",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetForexProvidersResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getforexrates": {
"get": {
"operationId": "GoCryptoTrader_GetForexRates",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetForexRatesResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getfuturespositions": {
"get": {
"operationId": "GoCryptoTrader_GetFuturesPositions",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetFuturesPositionsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "asset",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.delimiter",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.base",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.quote",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "startDate",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "endDate",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "status",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "positionLimit",
"in": "query",
"required": false,
"type": "string",
"format": "int64"
},
{
"name": "verbose",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "overwrite",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/gethistoriccandles": {
"get": {
"operationId": "GoCryptoTrader_GetHistoricCandles",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetHistoricCandlesResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.delimiter",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.base",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.quote",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "assetType",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "start",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "end",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "timeInterval",
"in": "query",
"required": false,
"type": "string",
"format": "int64"
},
{
"name": "exRequest",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "sync",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "useDb",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "fillMissingWithTrades",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "force",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getinfo": {
"get": {
"operationId": "GoCryptoTrader_GetInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetInfoResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getloggerdetails": {
"get": {
"operationId": "GoCryptoTrader_GetLoggerDetails",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetLoggerDetailsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "logger",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getmanagedorders": {
"post": {
"operationId": "GoCryptoTrader_GetManagedOrders",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetOrdersResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGetOrdersRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getorder": {
"post": {
"operationId": "GoCryptoTrader_GetOrder",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcOrderDetails"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGetOrderRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getorderbook": {
"post": {
"operationId": "GoCryptoTrader_GetOrderbook",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcOrderbookResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGetOrderbookRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getorderbooks": {
"get": {
"operationId": "GoCryptoTrader_GetOrderbooks",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetOrderbooksResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getorderbookstream": {
"get": {
"operationId": "GoCryptoTrader_GetOrderbookStream",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcOrderbookResponse"
},
"error": {
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of gctrpcOrderbookResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.delimiter",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.base",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.quote",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "assetType",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getorders": {
"post": {
"operationId": "GoCryptoTrader_GetOrders",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetOrdersResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGetOrdersRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getportfolio": {
"get": {
"operationId": "GoCryptoTrader_GetPortfolio",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetPortfolioResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getportfoliosummary": {
"get": {
"operationId": "GoCryptoTrader_GetPortfolioSummary",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetPortfolioSummaryResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getrpcendpoints": {
"get": {
"operationId": "GoCryptoTrader_GetRPCEndpoints",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetRPCEndpointsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getsavedtrades": {
"get": {
"operationId": "GoCryptoTrader_GetSavedTrades",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcSavedTradesResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.delimiter",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.base",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.quote",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "assetType",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "start",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "end",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getsubsystems": {
"get": {
"operationId": "GoCryptoTrader_GetSubsystems",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetSusbsytemsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/getticker": {
"post": {
"operationId": "GoCryptoTrader_GetTicker",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcTickerResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcGetTickerRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/gettickers": {
"get": {
"operationId": "GoCryptoTrader_GetTickers",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetTickersResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/gettickerstream": {
"get": {
"operationId": "GoCryptoTrader_GetTickerStream",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/gctrpcTickerResponse"
},
"error": {
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of gctrpcTickerResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.delimiter",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.base",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.quote",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "assetType",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/modifyorder": {
"get": {
"operationId": "GoCryptoTrader_ModifyOrder",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcModifyOrderResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "orderId",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.delimiter",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.base",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "pair.quote",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "asset",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "amount",
"in": "query",
"required": false,
"type": "number",
"format": "double"
},
{
"name": "price",
"in": "query",
"required": false,
"type": "number",
"format": "double"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/removeevent": {
"post": {
"operationId": "GoCryptoTrader_RemoveEvent",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcRemoveEventRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/removeportfolioaddress": {
"post": {
"operationId": "GoCryptoTrader_RemovePortfolioAddress",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcRemovePortfolioAddressRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/setallexchangepairs": {
"get": {
"operationId": "GoCryptoTrader_SetAllExchangePairs",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "enable",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/setdatahistoryjobstatus": {
"post": {
"operationId": "GoCryptoTrader_SetDataHistoryJobStatus",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcSetDataHistoryJobStatusRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/setexchangeasset": {
"get": {
"operationId": "GoCryptoTrader_SetExchangeAsset",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "asset",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "enable",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/setexchangepair": {
"post": {
"operationId": "GoCryptoTrader_SetExchangePair",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcSetExchangePairRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/setexchangetradeprocessing": {
"get": {
"operationId": "GoCryptoTrader_SetExchangeTradeProcessing",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "Exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "Status",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/setloggerdetails": {
"post": {
"operationId": "GoCryptoTrader_SetLoggerDetails",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetLoggerDetailsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcSetLoggerDetailsRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/simulateorder": {
"post": {
"operationId": "GoCryptoTrader_SimulateOrder",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcSimulateOrderResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcSimulateOrderRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/submitorder": {
"post": {
"operationId": "GoCryptoTrader_SubmitOrder",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcSubmitOrderResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcSubmitOrderRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/updateaccountinfo": {
"get": {
"operationId": "GoCryptoTrader_UpdateAccountInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGetAccountInfoResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "assetType",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/updatedatahistoryjobprerequisite": {
"post": {
"operationId": "GoCryptoTrader_UpdateDataHistoryJobPrerequisite",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcUpdateDataHistoryJobPrerequisiteRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/updateexchangesupportedpairs": {
"get": {
"operationId": "GoCryptoTrader_UpdateExchangeSupportedPairs",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/upsertdatahistoryjob": {
"post": {
"operationId": "GoCryptoTrader_UpsertDataHistoryJob",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcUpsertDataHistoryJobResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcUpsertDataHistoryJobRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/websocketgetinfo": {
"get": {
"operationId": "GoCryptoTrader_WebsocketGetInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcWebsocketGetInfoResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/websocketgetsubscriptions": {
"get": {
"operationId": "GoCryptoTrader_WebsocketGetSubscriptions",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcWebsocketGetSubscriptionsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/websocketsetenabled": {
"get": {
"operationId": "GoCryptoTrader_WebsocketSetEnabled",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "enable",
"in": "query",
"required": false,
"type": "boolean"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/websocketsetproxy": {
"get": {
"operationId": "GoCryptoTrader_WebsocketSetProxy",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "proxy",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/websocketseturl": {
"get": {
"operationId": "GoCryptoTrader_WebsocketSetURL",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcGenericResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "exchange",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "url",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/whalebomb": {
"post": {
"operationId": "GoCryptoTrader_WhaleBomb",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcSimulateOrderResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcWhaleBombRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/withdrawaleventbydate": {
"post": {
"operationId": "GoCryptoTrader_WithdrawalEventsByDate",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcWithdrawalEventsByExchangeResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcWithdrawalEventsByDateRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/withdrawaleventbyid": {
"post": {
"operationId": "GoCryptoTrader_WithdrawalEventsByExchange",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcWithdrawalEventsByExchangeResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcWithdrawalEventsByExchangeRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/withdrawfiatfunds": {
"post": {
"operationId": "GoCryptoTrader_WithdrawFiatFunds",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcWithdrawResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcWithdrawFiatRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
},
"/v1/withdrawithdrawcryptofundswfiatfunds": {
"post": {
"operationId": "GoCryptoTrader_WithdrawCryptocurrencyFunds",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/gctrpcWithdrawResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/gctrpcWithdrawCryptoRequest"
}
}
],
"tags": [
"GoCryptoTrader"
]
}
}
},
"definitions": {
"gctrpcAccount": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"currencies": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcAccountCurrencyInfo"
}
}
}
},
"gctrpcAccountCurrencyInfo": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"totalValue": {
"type": "number",
"format": "double"
},
"hold": {
"type": "number",
"format": "double"
},
"free": {
"type": "number",
"format": "double"
},
"freeWithoutBorrow": {
"type": "number",
"format": "double"
},
"borrowed": {
"type": "number",
"format": "double"
}
}
},
"gctrpcAddEventRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"item": {
"type": "string"
},
"conditionParams": {
"$ref": "#/definitions/gctrpcConditionParams"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"assetType": {
"type": "string"
},
"action": {
"type": "string"
}
}
},
"gctrpcAddEventResponse": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "int64"
}
}
},
"gctrpcAddPortfolioAddressRequest": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"coinType": {
"type": "string"
},
"description": {
"type": "string"
},
"balance": {
"type": "number",
"format": "double"
},
"supportedExchanges": {
"type": "string"
},
"coldStorage": {
"type": "boolean"
}
}
},
"gctrpcAuditEvent": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"identifier": {
"type": "string"
},
"message": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"gctrpcCancelAllOrdersRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
}
}
},
"gctrpcCancelAllOrdersResponse": {
"type": "object",
"properties": {
"orders": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcCancelAllOrdersResponseOrders"
}
},
"count": {
"type": "string",
"format": "int64"
}
}
},
"gctrpcCancelAllOrdersResponseOrders": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"orderStatus": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"gctrpcCancelBatchOrdersRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"accountId": {
"type": "string"
},
"ordersId": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"assetType": {
"type": "string"
},
"walletAddress": {
"type": "string"
},
"side": {
"type": "string"
}
}
},
"gctrpcCancelBatchOrdersResponse": {
"type": "object",
"properties": {
"orders": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcCancelBatchOrdersResponseOrders"
}
}
}
},
"gctrpcCancelBatchOrdersResponseOrders": {
"type": "object",
"properties": {
"orderStatus": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"gctrpcCancelOrderRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"accountId": {
"type": "string"
},
"orderId": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"assetType": {
"type": "string"
},
"walletAddress": {
"type": "string"
},
"side": {
"type": "string"
}
}
},
"gctrpcCandle": {
"type": "object",
"properties": {
"time": {
"type": "string"
},
"low": {
"type": "number",
"format": "double"
},
"high": {
"type": "number",
"format": "double"
},
"open": {
"type": "number",
"format": "double"
},
"close": {
"type": "number",
"format": "double"
},
"volume": {
"type": "number",
"format": "double"
}
}
},
"gctrpcCoin": {
"type": "object",
"properties": {
"coin": {
"type": "string"
},
"balance": {
"type": "number",
"format": "double"
},
"address": {
"type": "string"
},
"percentage": {
"type": "number",
"format": "double"
}
}
},
"gctrpcCollateralByPosition": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"size": {
"type": "string"
},
"openOrderSize": {
"type": "string"
},
"positionSize": {
"type": "string"
},
"markPrice": {
"type": "string"
},
"requiredMargin": {
"type": "string"
},
"totalCollateralUsed": {
"type": "string"
}
}
},
"gctrpcCollateralForCurrency": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"excludedFromCollateral": {
"type": "boolean"
},
"totalFunds": {
"type": "string"
},
"availableForUseAsCollateral": {
"type": "string"
},
"approxFairMarketValue": {
"type": "string"
},
"weighting": {
"type": "string"
},
"collateralContribution": {
"type": "string"
},
"scaledToCurrency": {
"type": "string"
},
"unrealisedPNL": {
"type": "string"
},
"fundsInUse": {
"type": "string"
},
"additionalCollateralUsed": {
"type": "string"
},
"usedBreakdown": {
"$ref": "#/definitions/gctrpcCollateralUsedBreakdown"
},
"error": {
"type": "string"
}
}
},
"gctrpcCollateralUsedBreakdown": {
"type": "object",
"properties": {
"lockedInStakes": {
"type": "string"
},
"lockedInNFTBids": {
"type": "string"
},
"lockedInFeeVoucher": {
"type": "string"
},
"lockedInSpotMarginFundingOffers": {
"type": "string"
},
"lockedInSpotOrders": {
"type": "string"
},
"lockedAsCollateral": {
"type": "string"
},
"usedInFutures": {
"type": "string"
},
"usedInSpotMargin": {
"type": "string"
}
}
},
"gctrpcCommunicationRelayer": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"connected": {
"type": "boolean"
}
}
},
"gctrpcConditionParams": {
"type": "object",
"properties": {
"condition": {
"type": "string"
},
"price": {
"type": "number",
"format": "double"
},
"checkBids": {
"type": "boolean"
},
"checkAsks": {
"type": "boolean"
},
"orderbookAmount": {
"type": "number",
"format": "double"
}
}
},
"gctrpcCryptoWithdrawalEvent": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"addressTag": {
"type": "string"
},
"fee": {
"type": "number",
"format": "double"
},
"txId": {
"type": "string"
}
}
},
"gctrpcCurrencyPair": {
"type": "object",
"properties": {
"delimiter": {
"type": "string"
},
"base": {
"type": "string"
},
"quote": {
"type": "string"
}
}
},
"gctrpcCurrencyState": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"asset": {
"type": "string"
},
"withdrawEnabled": {
"type": "boolean"
},
"depositEnabled": {
"type": "boolean"
},
"tradingEnabled": {
"type": "boolean"
}
}
},
"gctrpcCurrencyStateResponse": {
"type": "object",
"properties": {
"currencyStates": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcCurrencyState"
}
}
}
},
"gctrpcDataHistoryJob": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"nickname": {
"type": "string"
},
"exchange": {
"type": "string"
},
"asset": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"startDate": {
"type": "string"
},
"endDate": {
"type": "string"
},
"interval": {
"type": "string",
"format": "int64"
},
"requestSizeLimit": {
"type": "string",
"format": "int64"
},
"maxRetryAttempts": {
"type": "string",
"format": "int64"
},
"batchSize": {
"type": "string",
"format": "int64"
},
"status": {
"type": "string"
},
"dataType": {
"type": "string"
},
"conversionInterval": {
"type": "string",
"format": "int64"
},
"overwriteExistingData": {
"type": "boolean"
},
"prerequisiteJobNickname": {
"type": "string"
},
"decimalPlaceComparison": {
"type": "string",
"format": "int64"
},
"secondaryExchangeName": {
"type": "string"
},
"issueTolerancePercentage": {
"type": "number",
"format": "double"
},
"replaceOnIssue": {
"type": "boolean"
},
"jobResults": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcDataHistoryJobResult"
}
},
"resultSummaries": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"gctrpcDataHistoryJobResult": {
"type": "object",
"properties": {
"startDate": {
"type": "string"
},
"endDate": {
"type": "string"
},
"hasData": {
"type": "boolean"
},
"message": {
"type": "string"
},
"runDate": {
"type": "string"
}
}
},
"gctrpcDataHistoryJobs": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcDataHistoryJob"
}
}
}
},
"gctrpcDepositAddress": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"tag": {
"type": "string"
},
"chain": {
"type": "string"
}
}
},
"gctrpcDepositAddresses": {
"type": "object",
"properties": {
"addresses": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcDepositAddress"
}
}
}
},
"gctrpcFiatWithdrawalEvent": {
"type": "object",
"properties": {
"bankName": {
"type": "string"
},
"accountName": {
"type": "string"
},
"accountNumber": {
"type": "string"
},
"bsb": {
"type": "string"
},
"swift": {
"type": "string"
},
"iban": {
"type": "string"
}
}
},
"gctrpcFindMissingIntervalsResponse": {
"type": "object",
"properties": {
"exchangeName": {
"type": "string"
},
"assetType": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"missingPeriods": {
"type": "array",
"items": {
"type": "string"
}
},
"status": {
"type": "string"
}
}
},
"gctrpcForexProvider": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"verbose": {
"type": "boolean"
},
"restPollingDelay": {
"type": "string"
},
"apiKey": {
"type": "string"
},
"apiKeyLevel": {
"type": "string",
"format": "int64"
},
"primaryProvider": {
"type": "boolean"
}
}
},
"gctrpcForexRatesConversion": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"rate": {
"type": "number",
"format": "double"
},
"inverseRate": {
"type": "number",
"format": "double"
}
}
},
"gctrpcFuturePosition": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"currentDirection": {
"type": "string"
},
"unrealisedPNL": {
"type": "string"
},
"realisedPNL": {
"type": "string"
},
"openingDate": {
"type": "string"
},
"closingDate": {
"type": "string"
},
"orders": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcOrderDetails"
}
}
}
},
"gctrpcGCTScript": {
"type": "object",
"properties": {
"UUID": {
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"nextRun": {
"type": "string"
}
}
},
"gctrpcGCTScriptAutoLoadRequest": {
"type": "object",
"properties": {
"script": {
"type": "string"
},
"status": {
"type": "boolean"
}
}
},
"gctrpcGCTScriptListAllRequest": {
"type": "object"
},
"gctrpcGCTScriptQueryResponse": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"script": {
"$ref": "#/definitions/gctrpcGCTScript"
},
"data": {
"type": "string"
}
}
},
"gctrpcGCTScriptReadScriptRequest": {
"type": "object",
"properties": {
"script": {
"$ref": "#/definitions/gctrpcGCTScript"
}
}
},
"gctrpcGCTScriptStatusResponse": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"scripts": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcGCTScript"
}
}
}
},
"gctrpcGCTScriptStopAllRequest": {
"type": "object"
},
"gctrpcGCTScriptStopRequest": {
"type": "object",
"properties": {
"script": {
"$ref": "#/definitions/gctrpcGCTScript"
}
}
},
"gctrpcGCTScriptUploadRequest": {
"type": "object",
"properties": {
"scriptName": {
"type": "string"
},
"scriptData": {
"type": "string"
},
"data": {
"type": "string",
"format": "byte"
},
"archived": {
"type": "boolean"
},
"overwrite": {
"type": "boolean"
}
}
},
"gctrpcGenericExchangeNameRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
}
}
},
"gctrpcGenericResponse": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"data": {
"type": "string"
}
}
},
"gctrpcGetAccountInfoResponse": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"accounts": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcAccount"
}
}
}
},
"gctrpcGetAuditEventResponse": {
"type": "object",
"properties": {
"events": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcAuditEvent"
}
}
}
},
"gctrpcGetAvailableTransferChainsRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"cryptocurrency": {
"type": "string"
}
}
},
"gctrpcGetAvailableTransferChainsResponse": {
"type": "object",
"properties": {
"chains": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"gctrpcGetCollateralResponse": {
"type": "object",
"properties": {
"subAccount": {
"type": "string"
},
"collateralCurrency": {
"type": "string"
},
"totalValueOfPositiveSpotBalances": {
"type": "string"
},
"collateralContributedByPositiveSpotBalances": {
"type": "string"
},
"usedCollateral": {
"type": "string"
},
"usedBreakdown": {
"$ref": "#/definitions/gctrpcCollateralUsedBreakdown"
},
"availableCollateral": {
"type": "string"
},
"maintenanceCollateral": {
"type": "string"
},
"unrealisedPNL": {
"type": "string"
},
"currencyBreakdown": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcCollateralForCurrency"
}
},
"positionBreakdown": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcCollateralByPosition"
}
}
}
},
"gctrpcGetCommunicationRelayersResponse": {
"type": "object",
"properties": {
"communicationRelayers": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gctrpcCommunicationRelayer"
}
}
}
},
"gctrpcGetConfigResponse": {
"type": "object",
"properties": {
"data": {
"type": "string",
"format": "byte"
}
}
},
"gctrpcGetCryptocurrencyDepositAddressRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"cryptocurrency": {
"type": "string"
},
"chain": {
"type": "string"
},
"bypass": {
"type": "boolean"
}
}
},
"gctrpcGetCryptocurrencyDepositAddressResponse": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"tag": {
"type": "string"
}
}
},
"gctrpcGetCryptocurrencyDepositAddressesRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
}
}
},
"gctrpcGetCryptocurrencyDepositAddressesResponse": {
"type": "object",
"properties": {
"addresses": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gctrpcDepositAddresses"
}
}
}
},
"gctrpcGetEventsResponse": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "int64"
},
"exchange": {
"type": "string"
},
"item": {
"type": "string"
},
"conditionParams": {
"$ref": "#/definitions/gctrpcConditionParams"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"action": {
"type": "string"
},
"executed": {
"type": "boolean"
}
}
},
"gctrpcGetExchangeAssetsResponse": {
"type": "object",
"properties": {
"assets": {
"type": "string"
}
}
},
"gctrpcGetExchangeInfoResponse": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"verbose": {
"type": "boolean"
},
"usingSandbox": {
"type": "boolean"
},
"httpTimeout": {
"type": "string"
},
"httpUseragent": {
"type": "string"
},
"httpProxy": {
"type": "string"
},
"baseCurrencies": {
"type": "string"
},
"supportedAssets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gctrpcPairsSupported"
}
},
"authenticatedApi": {
"type": "boolean"
}
}
},
"gctrpcGetExchangeOTPResponse": {
"type": "object",
"properties": {
"otpCode": {
"type": "string"
}
}
},
"gctrpcGetExchangeOTPsResponse": {
"type": "object",
"properties": {
"otpCodes": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"gctrpcGetExchangePairsRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"asset": {
"type": "string"
}
}
},
"gctrpcGetExchangePairsResponse": {
"type": "object",
"properties": {
"supportedAssets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gctrpcPairsSupported"
}
}
}
},
"gctrpcGetExchangesResponse": {
"type": "object",
"properties": {
"exchanges": {
"type": "string"
}
}
},
"gctrpcGetForexProvidersResponse": {
"type": "object",
"properties": {
"forexProviders": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcForexProvider"
}
}
}
},
"gctrpcGetForexRatesResponse": {
"type": "object",
"properties": {
"forexRates": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcForexRatesConversion"
}
}
}
},
"gctrpcGetFuturesPositionsResponse": {
"type": "object",
"properties": {
"totalOrders": {
"type": "string",
"format": "int64"
},
"subAccount": {
"type": "string"
},
"totalRealisedPNL": {
"type": "string"
},
"totalUnrealisedPNL": {
"type": "string"
},
"totalPNL": {
"type": "string"
},
"positions": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcFuturePosition"
}
}
}
},
"gctrpcGetHistoricCandlesResponse": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"start": {
"type": "string"
},
"end": {
"type": "string"
},
"interval": {
"type": "string"
},
"candle": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcCandle"
}
}
}
},
"gctrpcGetInfoResponse": {
"type": "object",
"properties": {
"uptime": {
"type": "string"
},
"availableExchanges": {
"type": "string",
"format": "int64"
},
"enabledExchanges": {
"type": "string",
"format": "int64"
},
"defaultForexProvider": {
"type": "string"
},
"defaultFiatCurrency": {
"type": "string"
},
"subsystemStatus": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
},
"rpcEndpoints": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gctrpcRPCEndpoint"
}
}
}
},
"gctrpcGetLoggerDetailsResponse": {
"type": "object",
"properties": {
"info": {
"type": "boolean"
},
"debug": {
"type": "boolean"
},
"warn": {
"type": "boolean"
},
"error": {
"type": "boolean"
}
}
},
"gctrpcGetOrderRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"orderId": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"asset": {
"type": "string"
}
}
},
"gctrpcGetOrderbookRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"assetType": {
"type": "string"
}
}
},
"gctrpcGetOrderbooksResponse": {
"type": "object",
"properties": {
"orderbooks": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcOrderbooks"
}
}
}
},
"gctrpcGetOrdersRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"assetType": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"startDate": {
"type": "string"
},
"endDate": {
"type": "string"
}
}
},
"gctrpcGetOrdersResponse": {
"type": "object",
"properties": {
"orders": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcOrderDetails"
}
}
}
},
"gctrpcGetPortfolioResponse": {
"type": "object",
"properties": {
"portfolio": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcPortfolioAddress"
}
}
}
},
"gctrpcGetPortfolioSummaryResponse": {
"type": "object",
"properties": {
"coinTotals": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcCoin"
}
},
"coinsOffline": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcCoin"
}
},
"coinsOfflineSummary": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gctrpcOfflineCoins"
}
},
"coinsOnline": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcCoin"
}
},
"coinsOnlineSummary": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gctrpcOnlineCoins"
}
}
}
},
"gctrpcGetRPCEndpointsResponse": {
"type": "object",
"properties": {
"endpoints": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gctrpcRPCEndpoint"
}
}
}
},
"gctrpcGetSusbsytemsResponse": {
"type": "object",
"properties": {
"subsystemsStatus": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
}
}
},
"gctrpcGetTickerRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"assetType": {
"type": "string"
}
}
},
"gctrpcGetTickersResponse": {
"type": "object",
"properties": {
"tickers": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcTickers"
}
}
}
},
"gctrpcModifyOrderResponse": {
"type": "object",
"properties": {
"modifiedOrderId": {
"type": "string"
}
}
},
"gctrpcOfflineCoinSummary": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"balance": {
"type": "number",
"format": "double"
},
"percentage": {
"type": "number",
"format": "double"
}
}
},
"gctrpcOfflineCoins": {
"type": "object",
"properties": {
"addresses": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcOfflineCoinSummary"
}
}
}
},
"gctrpcOnlineCoinSummary": {
"type": "object",
"properties": {
"balance": {
"type": "number",
"format": "double"
},
"percentage": {
"type": "number",
"format": "double"
}
}
},
"gctrpcOnlineCoins": {
"type": "object",
"properties": {
"coins": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gctrpcOnlineCoinSummary"
}
}
}
},
"gctrpcOrderDetails": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"id": {
"type": "string"
},
"clientOrderId": {
"type": "string"
},
"baseCurrency": {
"type": "string"
},
"quoteCurrency": {
"type": "string"
},
"assetType": {
"type": "string"
},
"orderSide": {
"type": "string"
},
"orderType": {
"type": "string"
},
"creationTime": {
"type": "string",
"format": "int64"
},
"updateTime": {
"type": "string",
"format": "int64"
},
"status": {
"type": "string"
},
"price": {
"type": "number",
"format": "double"
},
"amount": {
"type": "number",
"format": "double"
},
"openVolume": {
"type": "number",
"format": "double"
},
"fee": {
"type": "number",
"format": "double"
},
"cost": {
"type": "number",
"format": "double"
},
"trades": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcTradeHistory"
}
}
}
},
"gctrpcOrderbookItem": {
"type": "object",
"properties": {
"amount": {
"type": "number",
"format": "double"
},
"price": {
"type": "number",
"format": "double"
},
"id": {
"type": "string",
"format": "int64"
}
}
},
"gctrpcOrderbookResponse": {
"type": "object",
"properties": {
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"currencyPair": {
"type": "string"
},
"bids": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcOrderbookItem"
}
},
"asks": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcOrderbookItem"
}
},
"lastUpdated": {
"type": "string",
"format": "int64"
},
"assetType": {
"type": "string"
},
"error": {
"type": "string"
}
}
},
"gctrpcOrderbooks": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"orderbooks": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcOrderbookResponse"
}
}
}
},
"gctrpcPairsSupported": {
"type": "object",
"properties": {
"availablePairs": {
"type": "string"
},
"enabledPairs": {
"type": "string"
}
}
},
"gctrpcPortfolioAddress": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"coinType": {
"type": "string"
},
"description": {
"type": "string"
},
"balance": {
"type": "number",
"format": "double"
}
}
},
"gctrpcRPCEndpoint": {
"type": "object",
"properties": {
"started": {
"type": "boolean"
},
"listenAddress": {
"type": "string"
}
}
},
"gctrpcRemoveEventRequest": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "int64"
}
}
},
"gctrpcRemovePortfolioAddressRequest": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"coinType": {
"type": "string"
},
"description": {
"type": "string"
}
}
},
"gctrpcSavedTrades": {
"type": "object",
"properties": {
"price": {
"type": "number",
"format": "double"
},
"amount": {
"type": "number",
"format": "double"
},
"side": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"tradeId": {
"type": "string"
}
}
},
"gctrpcSavedTradesResponse": {
"type": "object",
"properties": {
"exchangeName": {
"type": "string"
},
"asset": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"trades": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcSavedTrades"
}
}
}
},
"gctrpcSetDataHistoryJobStatusRequest": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"nickname": {
"type": "string"
},
"status": {
"type": "string",
"format": "int64"
}
}
},
"gctrpcSetExchangePairRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"assetType": {
"type": "string"
},
"pairs": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcCurrencyPair"
}
},
"enable": {
"type": "boolean"
}
}
},
"gctrpcSetLoggerDetailsRequest": {
"type": "object",
"properties": {
"logger": {
"type": "string"
},
"level": {
"type": "string"
}
}
},
"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"
},
"minimumPrice": {
"type": "number",
"format": "double"
},
"maximumPrice": {
"type": "number",
"format": "double"
},
"percentageGainLoss": {
"type": "number",
"format": "double"
},
"status": {
"type": "string"
}
}
},
"gctrpcSubmitOrderRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"side": {
"type": "string"
},
"orderType": {
"type": "string"
},
"amount": {
"type": "number",
"format": "double"
},
"price": {
"type": "number",
"format": "double"
},
"clientId": {
"type": "string"
},
"assetType": {
"type": "string"
}
}
},
"gctrpcSubmitOrderResponse": {
"type": "object",
"properties": {
"orderPlaced": {
"type": "boolean"
},
"orderId": {
"type": "string"
},
"trades": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcTrades"
}
}
}
},
"gctrpcTickerResponse": {
"type": "object",
"properties": {
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"lastUpdated": {
"type": "string",
"format": "int64"
},
"currencyPair": {
"type": "string"
},
"last": {
"type": "number",
"format": "double"
},
"high": {
"type": "number",
"format": "double"
},
"low": {
"type": "number",
"format": "double"
},
"bid": {
"type": "number",
"format": "double"
},
"ask": {
"type": "number",
"format": "double"
},
"volume": {
"type": "number",
"format": "double"
},
"priceAth": {
"type": "number",
"format": "double"
}
}
},
"gctrpcTickers": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"tickers": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcTickerResponse"
}
}
}
},
"gctrpcTradeHistory": {
"type": "object",
"properties": {
"creationTime": {
"type": "string",
"format": "int64"
},
"id": {
"type": "string"
},
"price": {
"type": "number",
"format": "double"
},
"amount": {
"type": "number",
"format": "double"
},
"exchange": {
"type": "string"
},
"assetType": {
"type": "string"
},
"orderSide": {
"type": "string"
},
"fee": {
"type": "number",
"format": "double"
},
"total": {
"type": "number",
"format": "double"
}
}
},
"gctrpcTrades": {
"type": "object",
"properties": {
"amount": {
"type": "number",
"format": "double"
},
"price": {
"type": "number",
"format": "double"
},
"fee": {
"type": "number",
"format": "double"
},
"feeAsset": {
"type": "string"
}
}
},
"gctrpcUpdateDataHistoryJobPrerequisiteRequest": {
"type": "object",
"properties": {
"nickname": {
"type": "string"
},
"prerequisiteJobNickname": {
"type": "string"
}
}
},
"gctrpcUpsertDataHistoryJobRequest": {
"type": "object",
"properties": {
"nickname": {
"type": "string"
},
"exchange": {
"type": "string"
},
"asset": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"startDate": {
"type": "string"
},
"endDate": {
"type": "string"
},
"interval": {
"type": "string",
"format": "int64"
},
"requestSizeLimit": {
"type": "string",
"format": "int64"
},
"dataType": {
"type": "string",
"format": "int64"
},
"maxRetryAttempts": {
"type": "string",
"format": "int64"
},
"batchSize": {
"type": "string",
"format": "int64"
},
"insertOnly": {
"type": "boolean"
},
"conversionInterval": {
"type": "string",
"format": "int64"
},
"overwriteExistingData": {
"type": "boolean"
},
"prerequisiteJobNickname": {
"type": "string"
},
"decimalPlaceComparison": {
"type": "string",
"format": "int64"
},
"secondaryExchangeName": {
"type": "string"
},
"issueTolerancePercentage": {
"type": "number",
"format": "double"
},
"replaceOnIssue": {
"type": "boolean"
}
}
},
"gctrpcUpsertDataHistoryJobResponse": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"jobId": {
"type": "string"
}
}
},
"gctrpcWebsocketGetInfoResponse": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"supported": {
"type": "boolean"
},
"enabled": {
"type": "boolean"
},
"authenticatedSupported": {
"type": "boolean"
},
"authenticated": {
"type": "boolean"
},
"runningUrl": {
"type": "string"
},
"proxyAddress": {
"type": "string"
}
}
},
"gctrpcWebsocketGetSubscriptionsResponse": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"subscriptions": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcWebsocketSubscription"
}
}
}
},
"gctrpcWebsocketSubscription": {
"type": "object",
"properties": {
"channel": {
"type": "string"
},
"currency": {
"type": "string"
},
"asset": {
"type": "string"
},
"params": {
"type": "string"
}
}
},
"gctrpcWhaleBombRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"pair": {
"$ref": "#/definitions/gctrpcCurrencyPair"
},
"priceTarget": {
"type": "number",
"format": "double"
},
"side": {
"type": "string"
}
}
},
"gctrpcWithdrawCryptoRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"address": {
"type": "string"
},
"addressTag": {
"type": "string"
},
"currency": {
"type": "string"
},
"amount": {
"type": "number",
"format": "double"
},
"fee": {
"type": "number",
"format": "double"
},
"description": {
"type": "string"
},
"chain": {
"type": "string"
}
}
},
"gctrpcWithdrawFiatRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"currency": {
"type": "string"
},
"amount": {
"type": "number",
"format": "double"
},
"description": {
"type": "string"
},
"bankAccountId": {
"type": "string"
}
}
},
"gctrpcWithdrawResponse": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"gctrpcWithdrawalEventByIDRequest": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"gctrpcWithdrawalEventByIDResponse": {
"type": "object",
"properties": {
"event": {
"$ref": "#/definitions/gctrpcWithdrawalEventResponse"
}
}
},
"gctrpcWithdrawalEventResponse": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"exchange": {
"$ref": "#/definitions/gctrpcWithdrawlExchangeEvent"
},
"request": {
"$ref": "#/definitions/gctrpcWithdrawalRequestEvent"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
}
}
},
"gctrpcWithdrawalEventsByDateRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"start": {
"type": "string"
},
"end": {
"type": "string"
},
"limit": {
"type": "integer",
"format": "int32"
}
}
},
"gctrpcWithdrawalEventsByExchangeRequest": {
"type": "object",
"properties": {
"exchange": {
"type": "string"
},
"id": {
"type": "string"
},
"limit": {
"type": "integer",
"format": "int32"
},
"currency": {
"type": "string"
}
}
},
"gctrpcWithdrawalEventsByExchangeResponse": {
"type": "object",
"properties": {
"event": {
"type": "array",
"items": {
"$ref": "#/definitions/gctrpcWithdrawalEventResponse"
}
}
}
},
"gctrpcWithdrawalRequestEvent": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"description": {
"type": "string"
},
"amount": {
"type": "number",
"format": "double"
},
"type": {
"type": "integer",
"format": "int32"
},
"fiat": {
"$ref": "#/definitions/gctrpcFiatWithdrawalEvent"
},
"crypto": {
"$ref": "#/definitions/gctrpcCryptoWithdrawalEvent"
}
}
},
"gctrpcWithdrawlExchangeEvent": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"id": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"typeUrl": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}