{
  "swagger" : "2.0",
  "info" : {
    "description" : "The official API of Cryptohopper.",
    "version" : "2025-12-02T12:54:20Z",
    "title" : "CryptohopperAPI",
    "termsOfService" : "https://www.cryptohopper.com/terms",
    "contact" : {
      "name" : "Cryptohopper",
      "email" : "support@cryptohopper.com"
    }
  },
  "host" : "api.cryptohopper.com",
  "basePath" : "/v1",
  "tags" : [ {
    "name" : "hopper",
    "description" : "Manage basic hopper operations"
  }, {
    "name" : "hopperConfig",
    "description" : "Configure the settings of your hopper"
  }, {
    "name" : "hopperConfigPools",
    "description" : "Configure the settings of your hoppers config pool"
  }, {
    "name" : "orders",
    "description" : "Manage the orders of your hopper"
  }, {
    "name" : "position",
    "description" : "Manage the positions of your hopper"
  }, {
    "name" : "trade",
    "description" : "Trade history from your hopper"
  }, {
    "name" : "output",
    "description" : "Log output from your hopper"
  }, {
    "name" : "marketplace",
    "description" : "Manage signals, templates, and strategies in the martketplace"
  }, {
    "name" : "trigger",
    "description" : "Manage your hoppers triggers"
  }, {
    "name" : "user",
    "description" : "Manage your users settings"
  }, {
    "name" : "template",
    "description" : "Manage your templates"
  }, {
    "name" : "default",
    "description" : ""
  }, {
    "name" : "webhooks",
    "description" : "Manage webhooks"
  }, {
    "name" : "exchange",
    "description" : "Get information from available exchanges on Cryptohopper"
  }, {
    "name" : "signal",
    "description" : "Manage your hoppers signals"
  }, {
    "name" : "platform",
    "description" : "Basic platform operations"
  }, {
    "name" : "strategy",
    "description" : "Manage strategies"
  } ],
  "schemes" : [ "https" ],
  "paths" : {
    "/" : {
      "get" : {
        "summary" : "Get Swagger JSON",
        "description" : "Get the Swagger JSON documentation of this API",
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "X-Frame-Options" : {
                "type" : "string"
              },
              "Strict-Transport-Security" : {
                "type" : "string"
              },
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "X-Content-Type-Options" : {
                "type" : "string"
              },
              "Content-Security-Policy" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/ai" : {
      "get" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/ai/credits" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/ai/credits/invoices" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/ai/credits/transactions" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/ai/models" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/ai/{ai_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "ai_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "ai_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/ai/{ai_id}/airesults" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "pair",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "start",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "exchange",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "ai_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "ai_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/api" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/api/webhooks" : {
      "post" : {
        "tags" : [ "webhooks" ],
        "summary" : "Create webhook",
        "description" : "Update or create a webhook. Message types: config_error, first_start, on_panic_mode_end, on_panic_mode_start, order_cancelled, order_completed, order_error, order_placed, trigger. Provide 'message type' as one string, values separated by a ','",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "WebhookPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/WebhookPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "webhooks" ],
        "summary" : "Delete webhook",
        "description" : "Delete an existing webhook.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "lang",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "WebhookDelete",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/WebhookDelete"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/app/mobile" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/app/mobile/iap" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/app/mobile/receipt" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/app/tradingview/webhook" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "patch" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/backtest" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/backtest/limits" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/backtest/{id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/backtest/{id}/cancel" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/backtest/{id}/notes" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/backtest/{id}/notes/{note_id}" : {
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "note_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "note_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "note_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/backtest/{id}/restart" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/backtest/{id}/versions" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/backtest/{id}/versions/{version_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "version_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "version_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "version_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/device/authorize" : {
      "get" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "code",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/device/check" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "client_id",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/device/code" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/device/list" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/device/{device}/revoke" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "device",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "x-api-ip-address",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "secret",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/exchange" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get available exchanges",
        "description" : "Get all available exchanges on Cryptohopper.",
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/currencies" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "start",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/currencies/{currency}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "currency",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "currency",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/details" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get details for each exchange",
        "description" : "Gets detailed information for each exchange. Like exchange description, links, api config, uptime, and more.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/forex-rates" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get rates for forex pairs",
        "description" : "Get all the rates for forex pairs on exchanges.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/exchange/portal" : {
      "get" : {
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/portal/map" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "key",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/sluis" : {
      "get" : {
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/basecurrencies" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get base currencies from exchange",
        "description" : "Get available base currencies from exchange.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "tags" : [ "exchange" ],
        "summary" : "Get base currencies from exchange",
        "description" : "Get available base currencies from exchange.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/basecurrencies/{base_currency}" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Check base currency",
        "description" : "Check if currency is a valid base currency for exchange.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "base_currency",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "base_currency",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/candle/{pair}/{time-frame}/{start-date}/{end-date}" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get candles from exchange",
        "description" : "Gets the candles for a specific pair of an exchange. Valid time frames are: 5m, 15m, 30m, 1h, 2h, 4h, and 1d. Start and end date are a timestamp in seconds.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "time-frame",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "start-date",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "end-date",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "pair",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        },
        "security" : [ {
          "Lambda_token_auth_v2" : [ ]
        } ]
      }
    },
    "/exchange/{exchange}/currencies" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Available currencies",
        "description" : "Get available currencies on exchange.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/currencies/decimals" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get precision for currencies",
        "description" : "Gets all used decimal precisions for currencies on an exchange.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/exchange/{exchange}/currency" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get a single currency",
        "description" : "Get information about a single currency. Provide currency in the 'coin' tag.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "coin",
          "in" : "query",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/currency/{currency}/decimals" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get precision for a currency",
        "description" : "Gets the used decimal precisions for as currency on an exchange.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "currency",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/exchange/{exchange}/getmarket" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get trading pair",
        "description" : "Get provided trading pair from the exchange.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "currency",
          "in" : "query",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "base_currency",
          "in" : "query",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/ipwhitelist" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/markets" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Available markets",
        "description" : "Get available markets on exchange.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/markets/{market}/decimals" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get price and amount decimals",
        "description" : "Get price and amount decimals for a specific market on an exchange.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "market",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/exchange/{exchange}/portal" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/portal/pairs" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "key",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/ticker" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get all tickers",
        "description" : "Get ticker for all pairs",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/ticker/{pair}" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get market ticker.",
        "description" : "Get ticker from market pair.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "pair",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "pair",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/tickers" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/withdrawalfees" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/exchange/{exchange}/{pair}/orderbook/{depth}" : {
      "get" : {
        "tags" : [ "exchange" ],
        "summary" : "Get orderbook",
        "description" : "Gets the orderbook for the selected exchange, market and orderbook depth.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "depth",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "pair",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        },
        "security" : [ {
          "Lambda_token_auth_v2" : [ ]
        } ]
      }
    },
    "/hopper" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get hoppers of users",
        "description" : "Retrieve all of the user's Hoppers",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "enabled",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "config_error",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "name",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/HoppersGET"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          },
          "500" : {
            "description" : "500 response"
          },
          "401" : {
            "description" : "401 response"
          },
          "501" : {
            "description" : "501 response"
          },
          "403" : {
            "description" : "403 response"
          },
          "404" : {
            "description" : "404 response"
          },
          "429" : {
            "description" : "429 response"
          }
        }
      },
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Create a new hopper",
        "description" : "Create a new hopper.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "HopperPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/HopperPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/receivingmobilenotifications" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Update mobile notifications",
        "description" : "Enable/disable receiving mobile notifications. When 'type' is 'logout' receiving notifications will be turned off.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "player_id",
          "in" : "query",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "type",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Retrieve hopper",
        "description" : "Retrieve hopper by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          },
          "400" : {
            "description" : "400 response"
          },
          "401" : {
            "description" : "401 response"
          },
          "500" : {
            "description" : "500 response"
          },
          "501" : {
            "description" : "501 response"
          },
          "403" : {
            "description" : "403 response"
          },
          "404" : {
            "description" : "404 response"
          },
          "429" : {
            "description" : "429 response"
          }
        }
      },
      "delete" : {
        "tags" : [ "hopper" ],
        "summary" : "Delete hopper",
        "description" : "Delete hopper by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Update hopper",
        "description" : "Update hopper settings of hopper by id.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "HopperIdPATCH",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/HopperIdPATCH"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/activity" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/backlog" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get positions in backlog",
        "description" : "Gets all positions in backlog from selected arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "hopper" ],
        "summary" : "Delete positions in backlog",
        "description" : "Deletes all positions in backlog from selected arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/backlog/{backlog_id}" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get backlog item",
        "description" : "Gets a specific item in backlog from selected arbitrage hopper and backlog item.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "backlog_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "hopper" ],
        "summary" : "Delete a positions in backlog",
        "description" : "Delets a positions from backlog for selected arbitrage hopper and backlog id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "backlog_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/cancel" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Cancel arbitrage",
        "description" : "Will cancel all arbitrage items in arbitrage_ids array, from selected arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/exchange" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get used exchanges for this hopper",
        "description" : "Gets all exchange and market info for exchanges used for the specified arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/exchange/cancel" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Cancel arbitrage",
        "description" : "Will cancel all arbitrage items in arbitrage_ids array, from selected arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/exchange/cancel/{arbitrage_id}" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Cancel arbitrage",
        "description" : "Will cancel arbitrage_id, from selected arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "arbitrage_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/exchange/history/{start}/{limit}" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get trade history for arbitrage hopper",
        "description" : "Gets trade history from arbitrage hopper for selected time range.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "limit",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "start",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/exchange/results" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get trade results from arbitrage hopper",
        "description" : "Gets results from trades from selected arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/market" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get market trades from arbitrage hopper",
        "description" : "Gets all market trades from selected arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/market/cancel" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Cancel market arbitrage",
        "description" : "Cancels all market arbitrage ids provided in arbitrage_ids for the specified arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/market/cancel/{arbitrage_id}" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Cancel market arbitrage",
        "description" : "Cancels market arbitrage id provided in arbitrage_id for the specified arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "arbitrage_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/market/history/{start}/{limit}" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get trade history for market arbitrage hopper",
        "description" : "Gets trade history from market arbitrage hopper for selected time range.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "limit",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "start",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/market/results" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get trade results from market arbitrage hopper",
        "description" : "Gets results from trades from selected market arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/arbitrage/total" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get total assets from arbitrage hopper",
        "description" : "Gets the total available assets from selected arbitrage hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "hopper" ],
        "summary" : "Reset total assets from arbitrage hopper",
        "description" : "Resets the total available assets from selected arbitrage hopper to 0.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/assets" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get assets",
        "description" : "Get available assets on exchange.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/backtest" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get available backtest for hopper",
        "description" : "Gets all the available backtests for selected hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Set a new backtest for hopper",
        "description" : "Creates a new backtests for selected hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/backtest/{start}/{limit}" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Run a backtest for hopper",
        "description" : "Runs a backtest for the specified hopper for duration start to end.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "limit",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "start",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/changebot" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Change bot type",
        "description" : "Changes the bot type of the specified hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/changeimage" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Change hopper image",
        "description" : "Change the image of a hopper via a POST request. Provide image within the 'image' tag.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "ChangeImagePOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/ChangeImagePOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/config" : {
      "get" : {
        "tags" : [ "hopperConfig" ],
        "summary" : "Get baseconfig",
        "description" : "Get baseconfig of hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "layout",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopperConfig" ],
        "summary" : "Update baseconfig",
        "description" : "Update baseconfig of hopper.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "HopperConfigPATCH",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/HopperConfigPATCH"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/config/pool" : {
      "get" : {
        "tags" : [ "hopperConfigPools" ],
        "summary" : "Get config pools",
        "description" : "Get config pools of hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "hopperConfigPools" ],
        "summary" : "Update config pool",
        "description" : "Update config pool of hopper by id.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "HopperPoolPATCH",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/HopperPoolPATCH"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/config/pool/{pool_id}" : {
      "get" : {
        "tags" : [ "hopperConfigPools" ],
        "summary" : "Get config pool",
        "description" : "Get config pool of hopper by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "pool_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "hopperConfigPools" ],
        "summary" : "Delete config pools",
        "description" : "Delete config pools of hopper by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "pool_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "pool_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopperConfigPools" ],
        "summary" : "Update config pool",
        "description" : "Update config pool of hopper by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "pool_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/disable" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Disable hopper",
        "description" : "Disable a hopper. This sets the status of the hopper to disabled.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/disable/buying" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Disable buying",
        "description" : "Disable buying. This sets the buying status of the hopper to disabled.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/disable/papertrading" : {
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Disable papertrading",
        "description" : "Disables paper trading for provided hopper id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/disable/selling" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Disable selling",
        "description" : "Disable selling. This sets the selling status of the hopper to disabled.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/enable" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Enable hopper",
        "description" : "Enable hopper. This sets the status of the hopper to enabled.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/enable/buying" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Enable buying",
        "description" : "Enable buying. This sets the buying status of the hopper to enabled.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/enable/papertrading" : {
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Enable papertrading",
        "description" : "Enables paper trading for provided hopper id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/enable/selling" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Enable selling",
        "description" : "Enable selling. This sets the selling status of the hopper to enabled.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/fastapi" : {
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/ipwhitelist" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "exchange",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/marketmaker" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get active market makers",
        "description" : "Gets the active market makers for selected hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/marketmaker/backlog" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get positions in backlog",
        "description" : "Gets all positions in backlog from selected market maker hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "hopper" ],
        "summary" : "Delete positions in backlog",
        "description" : "Deletes all positions in backlog from selected market maker hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/marketmaker/backlog/{backlog_id}" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get backlog item",
        "description" : "Gets a specific item in backlog from selected market maker hopper and backlog item.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "backlog_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "hopper" ],
        "summary" : "Delete a positions in backlog",
        "description" : "Delets a positions from backlog for selected market maker hopper and backlog id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "backlog_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/marketmaker/cancel" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Cancel market maker",
        "description" : "Will cancel all market maker items in marketmaker_ids array, from selected market maker hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/marketmaker/cancel/{marketmaker_id}" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Cancel market maker",
        "description" : "Will cancel marketmaker_id, from selected market maker hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "marketmaker_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/marketmaker/history/{start}/{limit}" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get trade history for market maker hopper",
        "description" : "Gets trade history from market maker hopper for selected time range.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "limit",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "start",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/marketmaker/trend" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get trend for market makers",
        "description" : "Gets the current active trend for selected hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Set trend for market maker",
        "description" : "Sets the active trend for selected hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "hopper" ],
        "summary" : "Delete trend for market makers",
        "description" : "Deletes the current active trend for selected hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/mosttraded" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get most traded currency",
        "description" : "Gets most traded currency for provided hopper id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/order" : {
      "get" : {
        "tags" : [ "orders" ],
        "summary" : "Get open orders",
        "description" : "Retrieve all of the open orders of the hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "orders" ],
        "summary" : "Create new order",
        "description" : "Create new buy or sell order. For sell, rather use the sell endpoint.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "OrderPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/OrderPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "orders" ],
        "summary" : "Delete order",
        "description" : "Deletes order for selected hopper. Set order_ids in POST.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/order/all" : {
      "delete" : {
        "tags" : [ "orders" ],
        "summary" : "Deletes all open orders",
        "description" : "Deletes all open order for selected hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/order/{order_id}" : {
      "get" : {
        "tags" : [ "orders" ],
        "summary" : "Get open order",
        "description" : "Get open order in hopper by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "order_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "orders" ],
        "summary" : "Cancel order",
        "description" : "Cancel an open order.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "order_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "order_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/order/{order_id}/cancel" : {
      "delete" : {
        "tags" : [ "hopper" ],
        "summary" : "Cancel order",
        "description" : "Cancels order for provided order id and hopper id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "order_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "order_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/order/{order_id}/tsb" : {
      "delete" : {
        "tags" : [ "hopper" ],
        "summary" : "Cancel TSB order",
        "description" : "Cancels trailing stop buy order for provided order id and hopper id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "order_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "order_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/output" : {
      "get" : {
        "tags" : [ "output" ],
        "summary" : "Get output",
        "description" : "Retrieve the output log of a hopper.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "sortOrder",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "count",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "offset",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "dateTo",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "dateFrom",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "entryType",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "sortBy",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "HopperOutputGET",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/HopperOutputGET"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/panicbutton" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Panic button",
        "description" : "Activate panic mode: sell everything and disable hopper..",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "market_orders",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          },
          "400" : {
            "description" : "400 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          },
          "404" : {
            "description" : "404 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "hopper" ],
        "summary" : "Panic button",
        "description" : "Deactivate panic mode: hopper returns to its original state.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/papertrading/deposit" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Deposit paper trading",
        "description" : "Deposit funds to paper trading account.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PapertradingPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PapertradingPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/papertrading/reset" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Reset paper trading balance",
        "description" : "Resets paper trading balance for the provided hopper id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/papertrading/withdraw" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Withdraw assets from paper trader",
        "description" : "Withdraws assest from selected paper trader.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PapertradingPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PapertradingPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/position" : {
      "get" : {
        "tags" : [ "position" ],
        "summary" : "Get positions",
        "description" : "Get open positions of hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/dca" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "DCA positions",
        "description" : "Activate DCA for provided positions.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionDCAPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionDCAPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/position/dca/block" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/dca/reset" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/dca/{position_id}" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Activate DCA for position",
        "description" : "Activate DCA for provided position.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/position/dca/{position_id}/block" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/dca/{position_id}/reset" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/hold" : {
      "get" : {
        "tags" : [ "position" ],
        "summary" : "Get positions with hold",
        "description" : "Get open positions of hopper with hold enabled.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Hold positions",
        "description" : "Hold 1 or more open positions.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionHoldPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionHoldPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/hold/{position_id}" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Hold position",
        "description" : "Hold open position by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "hold",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/merge" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Merge positions",
        "description" : "Merge multiple open positions in your hopper.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionMergePOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionMergePOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/movetoreserved" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Move positions to reserved",
        "description" : "Moves the provided positions to reserved.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionIDsPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionIDsPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/movetoreserved/{position_id}" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Move position to reserved",
        "description" : "Move the position to reserved.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/release" : {
      "get" : {
        "tags" : [ "position" ],
        "summary" : "Get open positions without hold",
        "description" : "Get open positions which have hold disabled.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionHoldPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionHoldPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Release positions",
        "description" : "Release 1 or more open positions.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionReleasePOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionReleasePOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/release/{position_id}" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Release position",
        "description" : "Release open position by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/remove" : {
      "delete" : {
        "tags" : [ "position" ],
        "summary" : "Remove positions",
        "description" : "Remove 1 or more open positions.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionRemoveDELETE",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionRemoveDELETE"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/remove/{position_id}" : {
      "delete" : {
        "tags" : [ "position" ],
        "summary" : "Remove position",
        "description" : "Remove open position by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/sell" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Sell positions",
        "description" : "Sell 1 or more open positions.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionSellPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionSellPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/sell/{position_id}" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Sell position",
        "description" : "Sell open position by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/setpositionsetting" : {
      "post" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "SetPositionSetting",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/SetPositionSetting"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/position/setshortsetting" : {
      "post" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "SetShortSetting",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/SetShortSetting"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/position/settakeprofit" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Set take profit",
        "description" : "Set take profit for selected position_ids.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "SetTakeProfitPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/SetTakeProfitPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/position/short" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Short position",
        "description" : "Short the positions for position_ids.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/position/short/{position_id}" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Short position",
        "description" : "Short the provided position.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/position/split" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Split positions",
        "description" : "Split 1 or more open positions.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionSplitPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionSplitPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/split/{position_id}" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Split position",
        "description" : "Split open position by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/sync" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionSyncPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionSyncPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/{position_id}" : {
      "get" : {
        "tags" : [ "position" ],
        "summary" : "Get position",
        "description" : "Get open position by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "position" ],
        "summary" : "Delete position",
        "description" : "Delete open position by id.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "Empty",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/Empty"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/position/{position_id}/update" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Update position",
        "description" : "Updates the provided position.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionUpdatePost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionUpdatePost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/rebalance" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/reserved" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get reserved positions",
        "description" : "Gets all reserved positions for selected hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/reserved/movetopositions" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/reserved/release" : {
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/reserved/{reserved_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "reserved_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "reserved_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/reserved/{reserved_id}/movetopositions" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "reserved_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "reserved_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/reserved/{reserved_id}/release" : {
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "reserved_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "reserved_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/reset" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Reset hopper",
        "description" : "Resets the stats for selected hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/setdefaulthopper" : {
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Set default hopper",
        "description" : "Sets the provided hopper as the default one.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/short" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get shorts",
        "description" : "Get open shorts for provided hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/short/close" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Close short positions",
        "description" : "Closes the short positions provided in position_ids.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionIDsPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionIDsPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/short/close/{position_id}" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Close short position",
        "description" : "Closes the short position provided.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/short/hold" : {
      "post" : {
        "tags" : [ "short" ],
        "summary" : "Hold short positions",
        "description" : "Hold 1 or more open short positions.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionHoldPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionHoldPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/short/hold/{position_id}" : {
      "post" : {
        "tags" : [ "short" ],
        "summary" : "Hold short position",
        "description" : "Hold open short position by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/short/release" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Release short positions",
        "description" : "Release 1 or more open short positions.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionReleasePOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionReleasePOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/short/release/{position_id}" : {
      "post" : {
        "tags" : [ "short" ],
        "summary" : "Release short position",
        "description" : "Release open short position by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/short/remove" : {
      "delete" : {
        "tags" : [ "position" ],
        "summary" : "Delete short positions",
        "description" : "Deletes the short positions provided in position_ids.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "PositionIDsPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/PositionIDsPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/short/remove/{position_id}" : {
      "delete" : {
        "tags" : [ "position" ],
        "summary" : "Delete short position",
        "description" : "Deletes the short position provided.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "position_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/short/{short_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "short_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/short/{short_id}/update" : {
      "post" : {
        "tags" : [ "position" ],
        "summary" : "Update short position",
        "description" : "Update the short position provided.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "short_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "ShortUpdatePost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/ShortUpdatePost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/signal" : {
      "get" : {
        "tags" : [ "signal" ],
        "summary" : "Get signals in hopper",
        "description" : "Get signals used in hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/HopperSignalsOutputGET"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/signal/last" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get last signal",
        "description" : "Gets the last received signal for selected hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/signal/{signal_id}" : {
      "get" : {
        "tags" : [ "signal" ],
        "summary" : "Get signal by id",
        "description" : "Get signal by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/HopperSignalsOutputGET"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "post" : {
        "tags" : [ "signal" ],
        "summary" : "Subscribe to signal",
        "description" : "Subscribe hopper to signal.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "signal" ],
        "summary" : "Unsubscribe from signal",
        "description" : "Unsubscribe hopper from signal.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "hopper" ],
        "summary" : "Update config of signal",
        "description" : "Updates the config of the subscribed signal.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/startbalance" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/stats" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get stats",
        "description" : "Get available stats for hopper. ",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "daterange",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/stats/dashboard" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get stats from dashboard",
        "description" : "Get the stats from the dashboard for this hopper. Like total amount invested, total returns, total open positions and total fees paid.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/stats/reset" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Reset stats",
        "description" : "Reset the hopper dashboard stats.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/stop" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/subscription" : {
      "get" : {
        "tags" : [ "hopper" ],
        "summary" : "Get subscriptions",
        "description" : "Get available subscriptions for hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/targets" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/template/save" : {
      "post" : {
        "tags" : [ "template" ],
        "summary" : "Save template",
        "description" : "Save new tempalte for selected hopper.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "SaveTemplatePOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/SaveTemplatePOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/trade" : {
      "get" : {
        "tags" : [ "trade" ],
        "summary" : "Get trade history",
        "description" : "Get the trade history of the hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "count",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "offset",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "dateTo",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "dateFrom",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/trade/{trade_id}" : {
      "get" : {
        "tags" : [ "trade" ],
        "summary" : "Get trade history by id",
        "description" : "Get a trade by id of the hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "trade_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "trade_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/trigger" : {
      "get" : {
        "tags" : [ "trigger" ],
        "summary" : "Get triggers",
        "description" : "Get the triggers of the hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "post" : {
        "tags" : [ "trigger" ],
        "summary" : "New trigger",
        "description" : "Create a new trigger.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "TriggerPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/TriggerPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/trigger/{trigger_id}" : {
      "get" : {
        "tags" : [ "trigger" ],
        "summary" : "Get trigger",
        "description" : "Get the trigger by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "trigger_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "trigger" ],
        "summary" : "Delete trigger",
        "description" : "Delete the trigger by id.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "trigger_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "TriggerDELETE",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/TriggerDELETE"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "trigger_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "trigger" ],
        "summary" : "Update trigger",
        "description" : "Update the trigger by id.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "trigger_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "TriggerPATCH",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/TriggerPATCH"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/hopper/{id}/triggerconfigs" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/triggerhistory" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/hopper/{id}/troubleshooter" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "platform",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "lang",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/copybots" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "start",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "exchange",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "available_in_app",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "trial",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "quote_currency",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/copybots/{copybot_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "copybot_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "copybot_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/copybots/{copybot_id}/review" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "copybot_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "copybot_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "MarketReviewPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/MarketReviewPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "copybot_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/copybots/{copybot_id}/review/{review_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "copybot_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "review_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "copybot_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "review_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/downloaditem" : {
      "post" : {
        "tags" : [ "marketplace" ],
        "summary" : "Download item from market place",
        "description" : "Downloads the provided marketplace_item_id from the market place.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "marketplace_item_id",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/giftcards" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get marketplace giftcards",
        "description" : "Gets all the public giftcards in the marketplace.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/giftcards/activate" : {
      "post" : {
        "tags" : [ "marketplace" ],
        "summary" : "Activate giftcards",
        "description" : "Activate a giftcard by giftcard code (only for in-house apps).",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/giftcards/images" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get giftcard images",
        "description" : "Get the giftcard images available to create a giftcard.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/giftcards/orders" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get open giftcard orders",
        "description" : "Get all the current open giftcard orders (only for in-house apps).",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/giftcards/orders/purchased" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get purchased giftcards",
        "description" : "Get the purchased and unused giftcards of the user (only for in-house apps).",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/giftcards/orders/used" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get used giftcards",
        "description" : "Get the used giftcards of the user (only for in-house apps).",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/giftcards/orders/{order_id}" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get ordered giftcard",
        "description" : "Get an ordered giftcard, by order id (only for in-house apps).",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "order_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "marketplace" ],
        "summary" : "Delete giftcard order",
        "description" : "Delete a giftcard order by order id (only for in-house apps).",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "order_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "order_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/giftcards/user" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get giftcards of user",
        "description" : "Gets the custom created giftcards of the user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "marketplace" ],
        "summary" : "Create custom giftcard",
        "description" : "Create a custom giftcard for the user to order.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/giftcards/validate" : {
      "post" : {
        "tags" : [ "marketplace" ],
        "summary" : "Validate giftcards",
        "description" : "Validate a giftcard by giftcard code (only for in-house apps).",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/giftcards/{giftcard_id}" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get giftcard",
        "description" : "Get a giftcard by giftcard id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "giftcard_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "marketplace" ],
        "summary" : "Delete custom giftcard",
        "description" : "Delete a custom giftcard, created by a user, by giftcard id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "giftcard_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "giftcard_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/homepage" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get market homepage",
        "description" : "Gets the top signals, strategies and templates available on the marketplace homepage.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "in_app",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/portfolios" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "start",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "exchange",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "available_in_app",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "quote_currency",
          "in" : "query",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/portfolios/{portfolio_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "portfolio_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "portfolio_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/portfolios/{portfolio_id}/review" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "portfolio_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "portfolio_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/review/{review_id}" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get review",
        "description" : "Gets a specific review from the marketplace.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "review_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "marketplace" ],
        "summary" : "Delete review",
        "description" : "Delete the specified review.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "review_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "marketplace" ],
        "summary" : "Update market review.",
        "description" : "Update a review for a market item.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "review_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "MarketReviewPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/MarketReviewPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/review/{review_id}/reply" : {
      "post" : {
        "tags" : [ "marketplace" ],
        "summary" : "Reply to a market review.",
        "description" : "Reply to a market review.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "review_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/savereview" : {
      "post" : {
        "tags" : [ "marketplace" ],
        "summary" : "Save market review.",
        "description" : "Save a review for a market item. Possible values for market_item_type: ['signal','strategy','template']",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "SaveReviewPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/SaveReviewPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/seller/{seller_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "seller_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/signals" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get available signals",
        "description" : "Get all available signals from the marketplace.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          },
          "400" : {
            "description" : "400 response"
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/signals/{signal_id}" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get signal",
        "description" : "Get signal strategy by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          },
          "400" : {
            "description" : "400 response"
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/signals/{signal_id}/chartdata" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/signals/{signal_id}/distribution" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Signal distribution",
        "description" : "Get weekly distribution for signal.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/signals/{signal_id}/performance" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Signal performace.",
        "description" : "Get performance report for signal.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/signals/{signal_id}/review" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get reviews signal.",
        "description" : "Get the reviews for a signal item.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "marketplace" ],
        "summary" : "Post a signal review.",
        "description" : "Post a review for a signal item. Possible values for review: reviewname, review and a rating.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "MarketReviewPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/MarketReviewPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/signals/{signal_id}/review/{review_id}" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get review for signal",
        "description" : "Gets a specific review from a signal.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "review_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/signals/{signal_id}/stats" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get stats from signal",
        "description" : "Gets stats report from a specific signal.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "signal_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/strategies" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get available strategies",
        "description" : "Get all available strategies from the marketplace.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "start",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "available_in_app",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          },
          "400" : {
            "description" : "400 response"
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/strategies/{strategy_id}" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get strategy",
        "description" : "Get marketplace strategy by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          },
          "400" : {
            "description" : "400 response"
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/strategies/{strategy_id}/review" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get strategy reviews",
        "description" : "Get reviews for a specific strategy.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "marketplace" ],
        "summary" : "Post a review",
        "description" : "Post a review to a specific strategy.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "MarketReviewPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/MarketReviewPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/strategies/{strategy_id}/review/{review_id}" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get review for strategy",
        "description" : "Gets a specific review from a strategy.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "review_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/templates" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get available templates",
        "description" : "Get all available templates from the marketplace.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          },
          "400" : {
            "description" : "400 response"
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/templates/{template_id}" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get template",
        "description" : "Get marketplace template by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          },
          "400" : {
            "description" : "400 response"
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/market/templates/{template_id}/review" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get template reviews",
        "description" : "Get reviews for a specific template.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "marketplace" ],
        "summary" : "Post a template review.",
        "description" : "Post a review for a template item. Possible values for review: reviewname, review and rating.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "MarketReviewPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/MarketReviewPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/market/templates/{template_id}/review/{review_id}" : {
      "get" : {
        "tags" : [ "marketplace" ],
        "summary" : "Get review for tempalte",
        "description" : "Gets a specific review from a template.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "review_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/platform" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/platform/blog" : {
      "get" : {
        "tags" : [ "platform" ],
        "summary" : "Get blogs",
        "description" : "Get last 8 blog items.",
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/platform/bottypes" : {
      "get" : {
        "tags" : [ "platform" ],
        "summary" : "Get bot types",
        "description" : "Get a map ID -> bot type.",
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/platform/countries" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/platform/country_allow_exchange" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/platform/languages" : {
      "get" : {
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/platform/promobar" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "lang",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/alias" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/feed" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/feed/{start}" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "start",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/feed/{start}/{end}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "end",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "start",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "start",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "end",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/messages" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/messages/{conversation_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "conversation_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "conversation_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/notifications" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/notifications/{start}" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "start",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/notifications/{start}/{end}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "end",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "start",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "start",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "end",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/post" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/post/{id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/post/{id}/comment" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/post/{id}/comment/{comment_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "comment_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "comment_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "comment_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/post/{id}/comment/{comment_id}/like" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "comment_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "comment_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "comment_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/post/{id}/like" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/post/{id}/pin" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/social/post/{id}/repost" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/profile" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/profile/{id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/social/profile/{id}/feed" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/profile/{id}/follow" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/profile/{id}/followers" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/profile/{id}/following" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/search" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/social/whotofollow" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/strategy" : {
      "get" : {
        "tags" : [ "strategy" ],
        "summary" : "Get strategies",
        "description" : "Get all strategies of user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "strategy" ],
        "summary" : "Create strategy",
        "description" : "Creates a new strategy.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/strategy/market" : {
      "get" : {
        "tags" : [ "strategy" ],
        "summary" : "Get market strategies",
        "description" : "Get all market strategies of user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/strategy/market/{strategy_id}" : {
      "get" : {
        "tags" : [ "strategy" ],
        "summary" : "Get market strategy",
        "description" : "Get market strategy of user by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "strategy" ],
        "summary" : "Delete market strategy",
        "description" : "Delete market strategy of user by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/strategy/models" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/strategy/{strategy_id}" : {
      "get" : {
        "tags" : [ "strategy" ],
        "summary" : "Get strategy",
        "description" : "Get strategy of user by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "strategy" ],
        "summary" : "Delete strategy",
        "description" : "Delete strategy of user by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "strategy" ],
        "summary" : "Update strategy",
        "description" : "Update a specific strategy.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "StrategyPOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/StrategyPOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/strategy/{strategy_id}/aigenerate" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/strategy/{strategy_id}/changeimage" : {
      "post" : {
        "tags" : [ "strategy" ],
        "summary" : "Change image of strategy",
        "description" : "Change the image of a specific strategy.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "strategy_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/subscription" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get subscription",
        "description" : "Gets the subscriptions for this user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "unassigned",
          "in" : "query",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/subscription/assign" : {
      "post" : {
        "tags" : [ "user" ],
        "summary" : "Assign subscription",
        "description" : "Assigns a subscription to a user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/subscription/credits" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/subscription/order" : {
      "post" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "OrderSubModel",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/OrderSubModel"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/subscription/plans" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get subscription plans",
        "description" : "Get available subscription plans for user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/subscription/plans/{plan_id}" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get a subscription plan",
        "description" : "Get a specific subscription plan of a user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "plan_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/subscription/remap" : {
      "post" : {
        "tags" : [ "hopper" ],
        "summary" : "Remap subscriptions",
        "description" : "Remap a subscription to a hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/subscription/{subscription_id}" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get a subscription",
        "description" : "Gets a specific subscription.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "subscription_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "patch" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "subscription_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/subscription/{subscription_id}/hopper" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "subscription_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/template" : {
      "get" : {
        "tags" : [ "template" ],
        "summary" : "Get templates",
        "description" : "Get all templates of user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/template/basic" : {
      "get" : {
        "tags" : [ "template" ],
        "summary" : "Get basic templates",
        "description" : "Gets the basic templates for new hoppers.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/template/basic/{exchange}" : {
      "get" : {
        "tags" : [ "template" ],
        "summary" : "Get basic template for exchange",
        "description" : "Gets the basic templates for new hoppers per exchange.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "exchange",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/template/market" : {
      "get" : {
        "tags" : [ "template" ],
        "summary" : "Get market templates",
        "description" : "Get all market templates of user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/template/market/{template_id}" : {
      "get" : {
        "tags" : [ "template" ],
        "summary" : "Get market template",
        "description" : "Get market template of user by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "template" ],
        "summary" : "Delete market template",
        "description" : "Delete market template of user by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/template/market/{template_id}/load" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/template/market/{template_id}/load/{hopper_id}" : {
      "post" : {
        "tags" : [ "template" ],
        "summary" : "Load market template",
        "description" : "Load market template of user into hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "hopper_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "hopper_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/template/{template_id}" : {
      "get" : {
        "tags" : [ "template" ],
        "summary" : "Get template",
        "description" : "Get template of user by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "template" ],
        "summary" : "Delete template",
        "description" : "Delete template of user by id.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/template/{template_id}/changeimage" : {
      "post" : {
        "tags" : [ "template" ],
        "summary" : "Change image of templates",
        "description" : "Changes the image for the specified template.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "ChangeImagePOST",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/ChangeImagePOST"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/template/{template_id}/load" : {
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/template/{template_id}/load/{hopper_id}" : {
      "post" : {
        "tags" : [ "template" ],
        "summary" : "Load template",
        "description" : "Load template of user into hopper.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "hopper_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "template_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "hopper_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments/active" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments/leaderboard" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments/leaderboard/{year}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "year",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "year",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments/search" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments/{tournament_id}" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments/{tournament_id}/activity" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments/{tournament_id}/join" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments/{tournament_id}/leaderboard" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments/{tournament_id}/stats" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/tournaments/{tournament_id}/trades" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "tournament_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get user profile",
        "description" : "Get the profile data of the authenticated user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/UserGET"
            }
          },
          "402" : {
            "description" : "402 response"
          }
        }
      },
      "delete" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "user" ],
        "summary" : "Update user profile",
        "description" : "Update the profile data of the authenticated user.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "UserPATCH",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/UserPATCH"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/user/askai" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/askai/new" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/askai/vote" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/credits" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get credits",
        "description" : "Get available credits for user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/email" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get email",
        "description" : "Get email from user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "user" ],
        "summary" : "Change email",
        "description" : "Change the email for this user.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "UserEmailPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/UserEmailPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/user/enableallmobilepushnotifications" : {
      "post" : {
        "tags" : [ "user" ],
        "summary" : "Enable mobile push notifications",
        "description" : "Enable all mobile push notifications. If permissions is not set, all notifications will be enabled. Available permission values are: 'config_error','on_first_start', 'on_trigger', 'on_panic_start', 'on_panic_end', 'order_placed', 'trade_completed', 'order_cancelled'. Provide permissions as one string, values separated by a ','. Permissions will be toggled when provided.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "permissions",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "player_id",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/id" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get user id",
        "description" : "Get the id of the authenticated user. No special permission is needed for this method.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/intercomsettings" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/mobilepushnotifications" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/mobilepushnotifications/{player_id}" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get push notifications",
        "description" : "returns list of pushnotifications with string 1 if subscribed or string 0 if not subscribed.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "player_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "player_id",
          "in" : "path",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/notifications" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get user notifications",
        "description" : "Get user notifications.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/password" : {
      "post" : {
        "tags" : [ "user" ],
        "summary" : "Change password",
        "description" : "Change the password for this user.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "UserPasswordPost",
          "required" : true,
          "schema" : {
            "$ref" : "#/definitions/UserPasswordPost"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/user/purchases" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get user purchases",
        "description" : "Get purchases made by user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/register" : {
      "post" : {
        "tags" : [ "user" ],
        "summary" : "Register user",
        "description" : "Register new user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "subscribe",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "name",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "DeviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "subscribe-newsletter",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "password",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "email",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "username",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "subscribe_newsletter",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "x-ch-next-mq9f58wo",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "Platform",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "atid",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/require2fareset" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/user/requirepasswordreset" : {
      "get" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/user/resendactivation" : {
      "post" : {
        "tags" : [ "user" ],
        "summary" : "Resend activation",
        "description" : "Resend user activation.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "email",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "username",
          "in" : "header",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "x-ch-next-mq9f58wo",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/resetpassword" : {
      "post" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "Platform",
          "in" : "header",
          "required" : false,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "patch" : {
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "username",
          "in" : "query",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "DeviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "password",
          "in" : "query",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "code",
          "in" : "query",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "Platform",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "password_verify",
          "in" : "query",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/transactions" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get user transactions",
        "description" : "Get transactions made by user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    },
    "/user/usermetadata" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Get user metadata",
        "description" : "Get available metadata for user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "user" ],
        "summary" : "Get user metadata",
        "description" : "Get available metadata for user.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      }
    },
    "/user/validatetwofactor" : {
      "get" : {
        "tags" : [ "user" ],
        "summary" : "Validate two factor",
        "description" : "Validate two factor authentication.",
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "deviceId",
          "in" : "header",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "access-token",
          "in" : "header",
          "description" : "",
          "required" : true,
          "type" : "string"
        }, {
          "name" : "code",
          "in" : "query",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            }
          }
        }
      },
      "options" : {
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "responses" : {
          "200" : {
            "description" : "200 response",
            "schema" : {
              "$ref" : "#/definitions/Empty"
            },
            "headers" : {
              "Access-Control-Allow-Origin" : {
                "type" : "string"
              },
              "Access-Control-Allow-Methods" : {
                "type" : "string"
              },
              "Access-Control-Allow-Headers" : {
                "type" : "string"
              }
            }
          }
        }
      }
    }
  },
  "securityDefinitions" : {
    "Lambda_token_auth_v2" : {
      "type" : "apiKey",
      "name" : "access-token",
      "in" : "header",
      "x-amazon-apigateway-authtype" : "custom"
    }
  },
  "definitions" : {
    "SaveReviewPOST" : {
      "type" : "object",
      "required" : [ "market_item_type", "marketplace_item_id", "rating", "reply_to", "review", "review_name" ],
      "properties" : {
        "marketplace_item_id" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "market_item_type" : {
          "type" : "string",
          "enum" : [ "signal", "strategy", "template" ]
        },
        "review_name" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 255
        },
        "review" : {
          "type" : "string",
          "minLength" : 1
        },
        "reply_to" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "rating" : {
          "type" : "number",
          "minimum" : 0.0
        }
      },
      "title" : "SaveReviewPOST"
    },
    "PositionDCAPOST" : {
      "type" : "object",
      "properties" : {
        "position_ids" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        },
        "market_order" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "dca_mode" : {
          "type" : "string",
          "enum" : [ "merged", "individual" ]
        },
        "trailing_buy" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "trailing_buy_percentage" : {
          "type" : "number",
          "minimum" : 0.0
        }
      },
      "title" : "PositionDCAPOST"
    },
    "PositionSyncPost" : {
      "type" : "object",
      "properties" : {
        "currency" : {
          "type" : "string"
        },
        "rate" : {
          "type" : "number"
        },
        "amount" : {
          "type" : "number"
        }
      },
      "title" : "PositionSyncPost"
    },
    "HopperOutputGETSearch_optsItemEntry_type" : {
      "type" : "string",
      "enum" : [ "error", "info" ]
    },
    "PositionSellPOST" : {
      "type" : "object",
      "properties" : {
        "position_id" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        }
      },
      "title" : "PositionSellPOST"
    },
    "TriggerPOSTIndicatorsBollinger_bandsCondition" : {
      "type" : "string",
      "enum" : [ "signals_buy", "signals_neutral", "signals_sell" ]
    },
    "UserPasswordPost" : {
      "type" : "object",
      "properties" : {
        "password" : {
          "type" : "string"
        }
      },
      "title" : "UserPasswordPost"
    },
    "HopperPoolPATCHConfigAdvanced_settingsStoch_slow_KMA_type" : {
      "type" : "string",
      "enum" : [ "sma", "ema", "wma", "dema", "tema", "trima", "kama", "mama", "t3" ]
    },
    "TriggerDELETEActions" : {
      "type" : "array",
      "items" : {
        "type" : "string",
        "enum" : [ "load_template", "set_buying_status", "set_selling_status", "hold_positions", "release_positions", "set_pct_profit", "sell", "sell_everything", "send_email" ]
      }
    },
    "TriggerDELETE" : {
      "type" : "object",
      "properties" : {
        "indicators" : {
          "$ref" : "#/definitions/TriggerDELETEIndicators"
        },
        "actions" : {
          "$ref" : "#/definitions/TriggerDELETEActions"
        }
      },
      "title" : "TriggerPATCH"
    },
    "HopperConfigPATCHConfigAdvanced_settingsCandle_size" : {
      "type" : "string",
      "enum" : [ "5_min", "15_min", "30_min", "1_hour", "2_hours", "4_hours", "1_day" ]
    },
    "HopperSignalsOutputGETSearch_optsItemEntry_type" : {
      "type" : "string",
      "enum" : [ "error", "info" ]
    },
    "UserGET" : {
      "type" : "object",
      "properties" : {
        "name" : {
          "type" : "string"
        },
        "username" : {
          "type" : "string"
        },
        "email" : {
          "type" : "string"
        },
        "address1" : {
          "type" : "string"
        },
        "address2" : {
          "type" : "string"
        },
        "city" : {
          "type" : "string"
        },
        "region" : {
          "type" : "string"
        },
        "country" : {
          "type" : "string"
        },
        "postal_code" : {
          "type" : "string"
        },
        "phone" : {
          "type" : "string"
        },
        "website" : {
          "type" : "string"
        }
      },
      "title" : "UserGET"
    },
    "HopperConfigPATCHConfigAdvanced_settingsStoch_slow_KMA_type" : {
      "type" : "string",
      "enum" : [ "sma", "ema", "wma", "dema", "tema", "trima", "kama", "mama", "t3" ]
    },
    "MarketReviewPost" : {
      "type" : "object",
      "properties" : {
        "review_name" : {
          "type" : "string"
        },
        "review" : {
          "type" : "string"
        },
        "rating" : {
          "type" : "number",
          "minimum" : 0.0,
          "maximum" : 5.0
        }
      },
      "title" : "MarketReviewPost"
    },
    "HopperPoolPATCH" : {
      "type" : "object",
      "required" : [ "pool_name" ],
      "properties" : {
        "pool_name" : {
          "type" : "string",
          "maxLength" : 50
        },
        "enabled" : {
          "type" : "integer"
        },
        "exchange" : {
          "$ref" : "#/definitions/HopperPoolPATCHExchange"
        },
        "base_currency" : {
          "type" : "string",
          "maxLength" : 10
        },
        "selected_coins" : {
          "type" : "array",
          "items" : {
            "type" : "string",
            "maxLength" : 10
          }
        },
        "config" : {
          "type" : "object",
          "properties" : {
            "strategy" : {
              "$ref" : "#/definitions/HopperPoolPATCHConfigStrategy"
            },
            "advanced_settings" : {
              "type" : "object",
              "properties" : {
                "candle_size" : {
                  "$ref" : "#/definitions/HopperPoolPATCHConfigAdvanced_settingsCandle_size"
                },
                "stochastic" : {
                  "type" : "integer"
                },
                "stochastic_RSI" : {
                  "type" : "integer"
                },
                "RSI" : {
                  "type" : "integer"
                },
                "MACD" : {
                  "type" : "integer"
                },
                "EMA" : {
                  "type" : "integer"
                },
                "KAMA" : {
                  "type" : "integer"
                },
                "SMA" : {
                  "type" : "integer"
                },
                "bollinger_bands" : {
                  "type" : "integer"
                },
                "stoch_fast_K period" : {
                  "type" : "integer"
                },
                "stoch_slow_K_period" : {
                  "type" : "integer"
                },
                "stoch_slow_KMA_type" : {
                  "$ref" : "#/definitions/HopperPoolPATCHConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "stoch_slow_D_period" : {
                  "type" : "integer"
                },
                "stoch_slow_DMA_type" : {
                  "$ref" : "#/definitions/HopperPoolPATCHConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "stoch_oversold_threshold" : {
                  "type" : "integer"
                },
                "stoch_overbought_threshold" : {
                  "type" : "integer"
                },
                "stoch_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "stoch_RSI_period" : {
                  "type" : "integer"
                },
                "stoch_RSI_fast_K_period" : {
                  "type" : "integer"
                },
                "stoch_RSI_fast_D_period" : {
                  "type" : "integer"
                },
                "stoch_RSI_fast_DMA_type" : {
                  "$ref" : "#/definitions/HopperPoolPATCHConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "stoch_RSI_oversold_threshold" : {
                  "type" : "integer"
                },
                "stoch_RSI_overbought_threshold" : {
                  "type" : "integer"
                },
                "stoch_RSI_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "RSI_period" : {
                  "type" : "integer"
                },
                "RSI_oversold_threshold" : {
                  "type" : "integer"
                },
                "RSI_overbought_threshold" : {
                  "type" : "integer"
                },
                "RSI_needed_for_buy_signal" : {
                  "type" : "integer"
                },
                "MACD_fast_period" : {
                  "type" : "integer"
                },
                "MACD_slow_period" : {
                  "type" : "integer"
                },
                "MACD_signal_period" : {
                  "type" : "integer"
                },
                "MACD_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "EMA_short_period" : {
                  "type" : "integer"
                },
                "EMA_long_period" : {
                  "type" : "integer"
                },
                "EMA_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "SMA_short_period" : {
                  "type" : "integer"
                },
                "SMA_long_period" : {
                  "type" : "integer"
                },
                "SMA_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "KAMA_short_period" : {
                  "type" : "integer"
                },
                "KAMA_long_period" : {
                  "type" : "integer"
                },
                "KAMA_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "bollinger_bands_period" : {
                  "type" : "number"
                },
                "bollinger_bands_deviation_upper_band" : {
                  "type" : "number"
                },
                "bollinger_bands_deviation_lower_band" : {
                  "type" : "number"
                },
                "bollinger_bands_MA_type" : {
                  "$ref" : "#/definitions/HopperPoolPATCHConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "bollinger_bands_req_for_buy_signal" : {
                  "type" : "integer"
                }
              }
            },
            "targets_to_buy" : {
              "type" : "integer"
            },
            "sell_with_strategy" : {
              "type" : "integer"
            },
            "pct_profit" : {
              "type" : "integer"
            },
            "ticker_rate" : {
              "$ref" : "#/definitions/HopperPoolPATCHConfigTicker_rate"
            },
            "cool_down" : {
              "type" : "integer"
            },
            "one_open_order_coin" : {
              "type" : "integer"
            },
            "pct_lower_bid" : {
              "type" : "number"
            },
            "pct_higher_ask" : {
              "type" : "number"
            },
            "stop_loss_pct" : {
              "type" : "number"
            },
            "trailing_stop_loss" : {
              "type" : "integer"
            },
            "trailing_stop_loss_pct" : {
              "type" : "number"
            },
            "trailing_stop_arm_pct" : {
              "type" : "number"
            },
            "trailing_stop_buy_pct" : {
              "type" : "number"
            },
            "hold_target_is_same" : {
              "type" : "integer"
            },
            "only_buy_positive_pairs" : {
              "type" : "integer"
            },
            "autoclose_position" : {
              "type" : "integer"
            },
            "DCA" : {
              "type" : "integer"
            },
            "DCA_after_time" : {
              "type" : "integer"
            },
            "DCA_max_retries" : {
              "type" : "integer"
            },
            "DCA_pct_trigger" : {
              "type" : "integer"
            },
            "DCA_buy_immediately" : {
              "type" : "integer"
            },
            "DCA_order_size" : {
              "$ref" : "#/definitions/HopperPoolPATCHConfigDCA_order_size"
            },
            "sell_order_max_open_time" : {
              "type" : "integer"
            },
            "buy_order_max_open_time" : {
              "type" : "integer"
            },
            "max_open_positions" : {
              "type" : "integer"
            },
            "coin_max_open_pos" : {
              "type" : "integer"
            },
            "coin_max_open_pos_pct" : {
              "type" : "number"
            },
            "buy_order_amount_pct" : {
              "type" : "number"
            },
            "buy_order_min_amount" : {
              "type" : "number"
            },
            "max_amount_allocated" : {
              "type" : "number"
            }
          }
        }
      },
      "title" : "HopperPoolPATCH"
    },
    "HopperSignalsOutputGETSearch_optsItemSort_field" : {
      "type" : "string",
      "enum" : [ "entry_date", "entry_type" ]
    },
    "ChangeImagePOST" : {
      "type" : "object",
      "required" : [ "image" ],
      "properties" : {
        "image" : {
          "type" : "string",
          "minLength" : 1
        }
      },
      "title" : "ChangeImagePOST"
    },
    "SaveTemplatePOST" : {
      "type" : "object",
      "properties" : {
        "save_as" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "name" : {
          "type" : "string",
          "maxLength" : 100
        },
        "description" : {
          "type" : "string",
          "maxLength" : 255
        }
      },
      "title" : "SaveTemplatePOST"
    },
    "UserEmailPost" : {
      "type" : "object",
      "properties" : {
        "email" : {
          "type" : "string"
        }
      },
      "title" : "UserEmailPost"
    },
    "HopperPOST" : {
      "type" : "object",
      "required" : [ "name" ],
      "properties" : {
        "name" : {
          "type" : "string",
          "maxLength" : 50
        },
        "enabled" : {
          "type" : "integer"
        },
        "api_config" : {
          "type" : "object",
          "properties" : {
            "api_key" : {
              "type" : "string"
            },
            "api_secret" : {
              "type" : "string"
            },
            "api_passphrase" : {
              "type" : "string"
            },
            "extra_api_key" : {
              "type" : "string"
            },
            "extra_api_secret" : {
              "type" : "string"
            },
            "kraken_extra_key" : {
              "type" : "string"
            },
            "kraken_private_extra_key" : {
              "type" : "string"
            },
            "gdax_api_passphrase" : {
              "type" : "string"
            },
            "gdax_post_only" : {
              "type" : "string"
            }
          }
        },
        "template_id" : {
          "type" : "string"
        },
        "config" : {
          "type" : "object",
          "properties" : {
            "exchange" : {
              "type" : "string"
            },
            "base_currency" : {
              "type" : "string"
            },
            "selected_coins" : {
              "type" : "array",
              "items" : {
                "type" : "string"
              }
            },
            "strategy" : {
              "$ref" : "#/definitions/HopperPOSTConfigStrategy"
            },
            "advanced_settings" : {
              "type" : "object",
              "properties" : {
                "candle_size" : {
                  "$ref" : "#/definitions/HopperPOSTConfigAdvanced_settingsCandle_size"
                },
                "stochastic" : {
                  "type" : "integer"
                },
                "stochastic_RSI" : {
                  "type" : "integer"
                },
                "RSI" : {
                  "type" : "integer"
                },
                "MACD" : {
                  "type" : "integer"
                },
                "EMA" : {
                  "type" : "integer"
                },
                "KAMA" : {
                  "type" : "integer"
                },
                "SMA" : {
                  "type" : "integer"
                },
                "bollinger_bands" : {
                  "type" : "integer"
                },
                "stoch_fast_K period" : {
                  "type" : "integer"
                },
                "stoch_slow_K_period" : {
                  "type" : "integer"
                },
                "stoch_slow_KMA_type" : {
                  "$ref" : "#/definitions/HopperPOSTConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "stoch_slow_D_period" : {
                  "type" : "integer"
                },
                "stoch_slow_DMA_type" : {
                  "$ref" : "#/definitions/HopperPOSTConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "stoch_oversold_threshold" : {
                  "type" : "integer"
                },
                "stoch_overbought_threshold" : {
                  "type" : "integer"
                },
                "stoch_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "stoch_RSI_period" : {
                  "type" : "integer"
                },
                "stoch_RSI_fast_K_period" : {
                  "type" : "integer"
                },
                "stoch_RSI_fast_D_period" : {
                  "type" : "integer"
                },
                "stoch_RSI_fast_DMA_type" : {
                  "$ref" : "#/definitions/HopperPOSTConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "stoch_RSI_oversold_threshold" : {
                  "type" : "integer"
                },
                "stoch_RSI_overbought_threshold" : {
                  "type" : "integer"
                },
                "stoch_RSI_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "RSI_period" : {
                  "type" : "integer"
                },
                "RSI_oversold_threshold" : {
                  "type" : "integer"
                },
                "RSI_overbought_threshold" : {
                  "type" : "integer"
                },
                "RSI_needed_for_buy_signal" : {
                  "type" : "integer"
                },
                "MACD_fast_period" : {
                  "type" : "integer"
                },
                "MACD_slow_period" : {
                  "type" : "integer"
                },
                "MACD_signal_period" : {
                  "type" : "integer"
                },
                "MACD_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "EMA_short_period" : {
                  "type" : "integer"
                },
                "EMA_long_period" : {
                  "type" : "integer"
                },
                "EMA_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "SMA_short_period" : {
                  "type" : "integer"
                },
                "SMA_long_period" : {
                  "type" : "integer"
                },
                "SMA_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "KAMA_short_period" : {
                  "type" : "integer"
                },
                "KAMA_long_period" : {
                  "type" : "integer"
                },
                "KAMA_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "bollinger_bands_period" : {
                  "type" : "number"
                },
                "bollinger_bands_deviation_upper_band" : {
                  "type" : "number"
                },
                "bollinger_bands_deviation_lower_band" : {
                  "type" : "number"
                },
                "bollinger_bands_MA_type" : {
                  "$ref" : "#/definitions/HopperPOSTConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "bollinger_bands_req_for_buy_signal" : {
                  "type" : "integer"
                }
              }
            },
            "targets_to_buy" : {
              "type" : "integer"
            },
            "sell_with_strategy" : {
              "type" : "integer"
            },
            "pct_profit" : {
              "type" : "integer"
            },
            "ticker_rate" : {
              "$ref" : "#/definitions/HopperPOSTConfigTicker_rate"
            },
            "cool_down" : {
              "type" : "integer"
            },
            "one_open_order_coin" : {
              "type" : "integer"
            },
            "pct_lower_bid" : {
              "type" : "number"
            },
            "pct_higher_ask" : {
              "type" : "number"
            },
            "stop_loss_pct" : {
              "type" : "number"
            },
            "trailing_stop_loss" : {
              "type" : "integer"
            },
            "trailing_stop_loss_pct" : {
              "type" : "number"
            },
            "trailing_stop_arm_pct" : {
              "type" : "number"
            },
            "trailing_stop_buy_pct" : {
              "type" : "number"
            },
            "hold_target_is_same" : {
              "type" : "integer"
            },
            "only_buy_positive_pairs" : {
              "type" : "integer"
            },
            "autoclose_position" : {
              "type" : "integer"
            },
            "DCA" : {
              "type" : "integer"
            },
            "DCA_after_time" : {
              "type" : "integer"
            },
            "DCA_max_retries" : {
              "type" : "integer"
            },
            "DCA_pct_trigger" : {
              "type" : "integer"
            },
            "DCA_buy_immediately" : {
              "type" : "integer"
            },
            "DCA_order_size" : {
              "$ref" : "#/definitions/HopperPOSTConfigDCA_order_size"
            },
            "sell_order_max_open_time" : {
              "type" : "integer"
            },
            "buy_order_max_open_time" : {
              "type" : "integer"
            },
            "max_open_positions" : {
              "type" : "integer"
            },
            "coin_max_open_pos" : {
              "type" : "integer"
            },
            "coin_max_open_pos_pct" : {
              "type" : "number"
            },
            "buy_order_amount_pct" : {
              "type" : "number"
            },
            "buy_order_min_amount" : {
              "type" : "number"
            },
            "max_amount_allocated" : {
              "type" : "number"
            }
          }
        }
      },
      "title" : "HopperPOST"
    },
    "PositionIDsPOST" : {
      "type" : "object",
      "required" : [ "position_ids" ],
      "properties" : {
        "position_ids" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        }
      },
      "title" : "PositionIDsPOST"
    },
    "HopperPOSTConfigAdvanced_settingsCandle_size" : {
      "type" : "string",
      "enum" : [ "5_min", "15_min", "30_min", "1_hour", "2_hours", "4_hours", "1_day" ]
    },
    "PositionSplitPOST" : {
      "type" : "object",
      "properties" : {
        "position_id" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        },
        "percentage" : {
          "type" : "number",
          "minimum" : 0.0,
          "maximum" : 100.0
        }
      },
      "title" : "PositionSplitPOST"
    },
    "HopperPOSTConfigStrategy" : {
      "type" : "string",
      "enum" : [ "none", "multiple_ta", "bbands_easy", "bbands_advanced", "rsi", "fixed_rates" ]
    },
    "HopperPoolPATCHConfigDCA_order_size" : {
      "type" : "string",
      "enum" : [ "double_down", "triple_down" ]
    },
    "OrderSubModel" : {
      "type" : "object",
      "required" : [ "plan_id" ],
      "properties" : {
        "payment_term" : {
          "type" : "string",
          "maxLength" : 50,
          "enum" : [ "year", "month" ]
        },
        "plan_id" : {
          "type" : "integer"
        },
        "confirm" : {
          "type" : "string"
        },
        "discount_code" : {
          "type" : "string"
        },
        "hopper_id" : {
          "type" : "integer"
        }
      },
      "title" : "OrderSubModel"
    },
    "WebhookPost" : {
      "type" : "object",
      "required" : [ "message_types", "webhook_url" ],
      "properties" : {
        "webhook_url" : {
          "type" : "string"
        },
        "message_types" : {
          "type" : "string"
        },
        "validation_code" : {
          "type" : "string"
        }
      },
      "title" : "WebhookPost"
    },
    "PositionMergePOST" : {
      "type" : "object",
      "required" : [ "position_id" ],
      "properties" : {
        "position_id" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        }
      },
      "title" : "PositionMergePOST"
    },
    "WebhookDelete" : {
      "type" : "object",
      "required" : [ "webhook_url" ],
      "properties" : {
        "webhook_url" : {
          "type" : "string"
        }
      },
      "title" : "WebhookDelete"
    },
    "HopperPoolPATCHExchange" : {
      "type" : "string",
      "enum" : [ "poloniex", "kraken", "bittrex", "gdax", "binance", "cryptopia", "bitfinex", "kucoin", "cexio", "hitbtc" ]
    },
    "HopperOutputGETSearch_optsItemSort_order" : {
      "type" : "string",
      "enum" : [ "asc", "desc" ]
    },
    "SetTakeProfitPost" : {
      "type" : "object",
      "required" : [ "percentage_profit", "position_ids" ],
      "properties" : {
        "position_ids" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        },
        "percentage_profit" : {
          "type" : "number",
          "minimum" : 0.0
        }
      },
      "title" : "SetTakeProfitPost"
    },
    "HopperSignalsOutputGETSearch_optsItemSort_order" : {
      "type" : "string",
      "enum" : [ "asc", "desc" ]
    },
    "TriggerDELETEIndicators" : {
      "type" : "array",
      "items" : {
        "type" : "string",
        "enum" : [ "price", "pct_change", "rsi", "stochastic", "stoch_rsi", "bollinger_bands", "macd", "ema", "sma", "kama" ]
      }
    },
    "HopperPoolPATCHConfigStrategy" : {
      "type" : "string",
      "enum" : [ "none", "multiple_ta", "bbands_easy", "bbands_advanced", "rsi", "fixed_rates" ]
    },
    "HopperPOSTConfigDCA_order_size" : {
      "type" : "string",
      "enum" : [ "double_down", "triple_down" ]
    },
    "HopperPOSTConfigAdvanced_settingsStoch_slow_KMA_type" : {
      "type" : "string",
      "enum" : [ "sma", "ema", "wma", "dema", "tema", "trima", "kama", "mama", "t3" ]
    },
    "PositionUpdatePost" : {
      "type" : "object",
      "properties" : {
        "take_profit" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "stop_loss" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "stop_loss_timeout_count" : {
          "type" : "integer",
          "minimum" : 0.0
        },
        "stop_loss_timeout_val" : {
          "type" : "string",
          "enum" : [ "minutes", "hours", "days" ]
        },
        "stop_loss_percentage" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "trailing_stop_loss" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "trailing_stop_loss_percentage" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "trailing_stop_loss_arm" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "auto_close" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "auto_close_time" : {
          "type" : "number",
          "minimum" : 0.0
        }
      },
      "title" : "PositionUpdatePost"
    },
    "HopperSignalsOutputGET" : {
      "type" : "object",
      "properties" : {
        "search_opts" : {
          "type" : "array",
          "items" : {
            "type" : "object",
            "properties" : {
              "date_from" : {
                "type" : "string"
              },
              "date_to" : {
                "type" : "string"
              },
              "entry_type" : {
                "$ref" : "#/definitions/HopperSignalsOutputGETSearch_optsItemEntry_type"
              },
              "sort_field" : {
                "$ref" : "#/definitions/HopperSignalsOutputGETSearch_optsItemSort_field"
              },
              "sort_order" : {
                "$ref" : "#/definitions/HopperSignalsOutputGETSearch_optsItemSort_order"
              },
              "page" : {
                "type" : "integer"
              },
              "perPage" : {
                "type" : "integer"
              }
            }
          }
        }
      },
      "title" : "HopperSignalsOutputGET",
      "description" : "Get the Hopper's signal output log"
    },
    "TriggerPOSTCandle_size" : {
      "type" : "string",
      "enum" : [ "5_min", "15_min", "30_min", "1_hour", "2_hours", "4_hours", "1_day" ]
    },
    "PapertradingPost" : {
      "type" : "object",
      "required" : [ "amount", "coin" ],
      "properties" : {
        "coin" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 10
        },
        "amount" : {
          "type" : "number",
          "minimum" : 0.0
        }
      },
      "title" : "PapertradingPOST"
    },
    "TriggerPOSTIndicatorsPriceCondition" : {
      "type" : "string",
      "enum" : [ ">", ">=", "=", "<", "<=" ]
    },
    "HopperConfigPATCH" : {
      "type" : "object",
      "properties" : {
        "config" : {
          "type" : "object",
          "properties" : {
            "exchange" : {
              "type" : "string"
            },
            "base_currency" : {
              "type" : "string",
              "maxLength" : 32
            },
            "allowed_coins" : {
              "type" : "array",
              "items" : {
                "type" : "string",
                "maxLength" : 32
              }
            },
            "strategy" : {
              "type" : "string"
            },
            "num_targets_per_buy" : {
              "type" : "string"
            },
            "advanced_settings" : {
              "type" : "object",
              "properties" : {
                "candle_size" : {
                  "$ref" : "#/definitions/HopperConfigPATCHConfigAdvanced_settingsCandle_size"
                },
                "stochastic" : {
                  "type" : "integer"
                },
                "stochastic_RSI" : {
                  "type" : "integer"
                },
                "RSI" : {
                  "type" : "integer"
                },
                "MACD" : {
                  "type" : "integer"
                },
                "EMA" : {
                  "type" : "integer"
                },
                "KAMA" : {
                  "type" : "integer"
                },
                "SMA" : {
                  "type" : "integer"
                },
                "bollinger_bands" : {
                  "type" : "integer"
                },
                "stoch_fast_K period" : {
                  "type" : "integer"
                },
                "stoch_slow_K_period" : {
                  "type" : "integer"
                },
                "stoch_slow_KMA_type" : {
                  "$ref" : "#/definitions/HopperConfigPATCHConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "stoch_slow_D_period" : {
                  "type" : "integer"
                },
                "stoch_slow_DMA_type" : {
                  "$ref" : "#/definitions/HopperConfigPATCHConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "stoch_oversold_threshold" : {
                  "type" : "integer"
                },
                "stoch_overbought_threshold" : {
                  "type" : "integer"
                },
                "stoch_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "stoch_RSI_period" : {
                  "type" : "integer"
                },
                "stoch_RSI_fast_K_period" : {
                  "type" : "integer"
                },
                "stoch_RSI_fast_D_period" : {
                  "type" : "integer"
                },
                "stoch_RSI_fast_DMA_type" : {
                  "$ref" : "#/definitions/HopperConfigPATCHConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "stoch_RSI_oversold_threshold" : {
                  "type" : "integer"
                },
                "stoch_RSI_overbought_threshold" : {
                  "type" : "integer"
                },
                "stoch_RSI_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "RSI_period" : {
                  "type" : "integer"
                },
                "RSI_oversold_threshold" : {
                  "type" : "integer"
                },
                "RSI_overbought_threshold" : {
                  "type" : "integer"
                },
                "RSI_needed_for_buy_signal" : {
                  "type" : "integer"
                },
                "MACD_fast_period" : {
                  "type" : "integer"
                },
                "MACD_slow_period" : {
                  "type" : "integer"
                },
                "MACD_signal_period" : {
                  "type" : "integer"
                },
                "MACD_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "EMA_short_period" : {
                  "type" : "integer"
                },
                "EMA_long_period" : {
                  "type" : "integer"
                },
                "EMA_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "SMA_short_period" : {
                  "type" : "integer"
                },
                "SMA_long_period" : {
                  "type" : "integer"
                },
                "SMA_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "KAMA_short_period" : {
                  "type" : "integer"
                },
                "KAMA_long_period" : {
                  "type" : "integer"
                },
                "KAMA_req_for_buy_signal" : {
                  "type" : "integer"
                },
                "bollinger_bands_period" : {
                  "type" : "number"
                },
                "bollinger_bands_deviation_upper_band" : {
                  "type" : "number"
                },
                "bollinger_bands_deviation_lower_band" : {
                  "type" : "number"
                },
                "bollinger_bands_MA_type" : {
                  "$ref" : "#/definitions/HopperConfigPATCHConfigAdvanced_settingsStoch_slow_KMA_type"
                },
                "bollinger_bands_req_for_buy_signal" : {
                  "type" : "integer"
                }
              }
            },
            "targets_to_buy" : {
              "type" : "integer"
            },
            "sell_with_strategy" : {
              "type" : "integer"
            },
            "pct_profit" : {
              "type" : "integer"
            },
            "ticker_rate" : {
              "$ref" : "#/definitions/HopperConfigPATCHConfigTicker_rate"
            },
            "cool_down" : {
              "type" : "integer"
            },
            "one_open_order_coin" : {
              "type" : "integer"
            },
            "pct_lower_bid" : {
              "type" : "number"
            },
            "pct_higher_ask" : {
              "type" : "number"
            },
            "stop_loss_pct" : {
              "type" : "number"
            },
            "trailing_stop_loss" : {
              "type" : "integer"
            },
            "trailing_stop_loss_pct" : {
              "type" : "number"
            },
            "trailing_stop_arm_pct" : {
              "type" : "number"
            },
            "trailing_stop_buy_pct" : {
              "type" : "number"
            },
            "hold_target_is_same" : {
              "type" : "integer"
            },
            "only_buy_positive_pairs" : {
              "type" : "integer"
            },
            "autoclose_position" : {
              "type" : "integer"
            },
            "DCA" : {
              "type" : "integer"
            },
            "DCA_after_time" : {
              "type" : "integer"
            },
            "DCA_max_retries" : {
              "type" : "integer"
            },
            "DCA_pct_trigger" : {
              "type" : "integer"
            },
            "DCA_buy_immediately" : {
              "type" : "integer"
            },
            "DCA_order_size" : {
              "$ref" : "#/definitions/HopperConfigPATCHConfigDCA_order_size"
            },
            "sell_order_max_open_time" : {
              "type" : "integer"
            },
            "buy_order_max_open_time" : {
              "type" : "integer"
            },
            "max_open_positions" : {
              "type" : "integer"
            },
            "coin_max_open_pos" : {
              "type" : "integer"
            },
            "coin_max_open_pos_pct" : {
              "type" : "number"
            },
            "buy_order_amount_pct" : {
              "type" : "number"
            },
            "buy_order_min_amount" : {
              "type" : "number"
            },
            "max_amount_allocated" : {
              "type" : "string"
            },
            "min_buy_amount" : {
              "type" : "string"
            },
            "perc_buy_amount" : {
              "type" : "string"
            },
            "min_buy_amount_force" : {
              "type" : "string"
            },
            "min_buy_score" : {
              "type" : "string"
            },
            "min_sell_score" : {
              "type" : "string"
            },
            "sell_score_corrected" : {
              "type" : "string"
            },
            "buy_score_corrected" : {
              "type" : "string"
            }
          }
        }
      },
      "title" : "HopperConfigPATCH"
    },
    "HoppersGET" : {
      "type" : "object",
      "properties" : {
        "data" : {
          "type" : "array",
          "items" : {
            "type" : "object",
            "properties" : {
              "id" : {
                "type" : "string"
              },
              "name" : {
                "type" : "string"
              },
              "exchange" : {
                "type" : "string"
              },
              "base_currency" : {
                "type" : "string"
              },
              "buying_enabled" : {
                "type" : "integer"
              },
              "selling_enabled" : {
                "type" : "integer"
              },
              "enabled" : {
                "type" : "integer"
              },
              "error_message" : {
                "type" : "string"
              },
              "config_error" : {
                "type" : "string"
              },
              "created" : {
                "type" : "string"
              },
              "start_balance" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "title" : "HoppersGET",
      "description" : "Get all of the user’s Hoppers"
    },
    "HopperPOSTConfigTicker_rate" : {
      "type" : "string",
      "enum" : [ "highest_bid_lowest_ask", "last_tick_if_higher_lower", "always_last_tick" ]
    },
    "Empty" : {
      "type" : "object",
      "title" : "Empty Schema"
    },
    "PositionReleasePOST" : {
      "type" : "object",
      "required" : [ "position_id" ],
      "properties" : {
        "position_id" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        }
      },
      "title" : "PositionReleasePOST"
    },
    "OrderPOST" : {
      "type" : "object",
      "properties" : {
        "order_type" : {
          "type" : "string"
        },
        "market_order" : {
          "type" : "integer"
        },
        "coin" : {
          "type" : "string"
        },
        "price" : {
          "type" : "number"
        },
        "amount" : {
          "type" : "number"
        },
        "order_trigger" : {
          "type" : "string"
        },
        "pct_profit" : {
          "type" : "number"
        },
        "stop_loss_percentage" : {
          "type" : "number"
        },
        "trailing_stop_loss_percentage" : {
          "type" : "number"
        },
        "trailing_arm_percentage" : {
          "type" : "number"
        },
        "manual" : {
          "type" : "number"
        }
      }
    },
    "TriggerPATCH" : {
      "type" : "object",
      "required" : [ "trigger_id" ],
      "properties" : {
        "trigger_id" : {
          "type" : "integer"
        },
        "name" : {
          "type" : "string"
        },
        "enabled" : {
          "type" : "integer"
        },
        "exchange" : {
          "type" : "integer"
        },
        "trading_pair" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        },
        "candle_size" : {
          "type" : "integer"
        },
        "indicators" : {
          "type" : "array",
          "items" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              },
              "items" : {
                "type" : "integer"
              }
            }
          }
        },
        "actions" : {
          "type" : "array",
          "items" : {
            "type" : "object",
            "properties" : {
              "type" : {
                "type" : "string"
              },
              "items" : {
                "type" : "integer"
              }
            }
          }
        },
        "cooldown_until" : {
          "type" : "integer"
        },
        "cooldown_time_unit" : {
          "type" : "integer"
        }
      },
      "title" : "TriggerPATCH"
    },
    "UserPATCH" : {
      "type" : "object",
      "properties" : {
        "name" : {
          "type" : "string"
        },
        "address1" : {
          "type" : "string"
        },
        "address2" : {
          "type" : "string"
        },
        "city" : {
          "type" : "string"
        },
        "region" : {
          "type" : "string"
        },
        "country" : {
          "type" : "string"
        },
        "country_nationality" : {
          "type" : "string"
        },
        "postal_code" : {
          "type" : "string"
        },
        "phone" : {
          "type" : "string"
        },
        "website" : {
          "type" : "string"
        }
      },
      "title" : "UserPATCH"
    },
    "HopperOutputGET" : {
      "type" : "object",
      "properties" : {
        "search_opts" : {
          "type" : "array",
          "items" : {
            "type" : "object",
            "properties" : {
              "date_from" : {
                "type" : "string"
              },
              "date_to" : {
                "type" : "string"
              },
              "entry_type" : {
                "$ref" : "#/definitions/HopperOutputGETSearch_optsItemEntry_type"
              },
              "sort_field" : {
                "$ref" : "#/definitions/HopperOutputGETSearch_optsItemSort_field"
              },
              "sort_order" : {
                "$ref" : "#/definitions/HopperOutputGETSearch_optsItemSort_order"
              },
              "page" : {
                "type" : "integer"
              },
              "perPage" : {
                "type" : "integer"
              }
            }
          }
        }
      },
      "title" : "HopperOutputGET",
      "description" : "Get the Hopper output log (hopper + signal activity log)"
    },
    "TriggerPOSTIndicatorsStochasticStoch_slow_KMA_type" : {
      "type" : "string",
      "enum" : [ "sma", "ema", "wma", "dema", "tema", "trima", "kama", "mama", "t3" ]
    },
    "HopperIdPATCH" : {
      "type" : "object",
      "properties" : {
        "name" : {
          "type" : "string"
        },
        "enabled" : {
          "type" : "integer"
        },
        "api_config" : {
          "type" : "object",
          "properties" : {
            "api_key" : {
              "type" : "string"
            },
            "api_secret" : {
              "type" : "string"
            },
            "kraken_extra_key" : {
              "type" : "string"
            },
            "kraken_private_extra_key" : {
              "type" : "string"
            },
            "gdax_api_passphrase" : {
              "type" : "string"
            },
            "gdax_post_only" : {
              "type" : "string"
            }
          }
        }
      },
      "title" : "HopperIdPATCH"
    },
    "SetShortSetting" : {
      "type" : "object",
      "properties" : {
        "position_ids" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        },
        "setting" : {
          "type" : "object",
          "properties" : {
            "take_profit" : {
              "type" : "number",
              "minimum" : 0.0
            },
            "auto_close_time" : {
              "type" : "number",
              "minimum" : 0.0
            },
            "auto_remove_time" : {
              "type" : "number",
              "minimum" : 0.0
            },
            "stop_loss_percentage" : {
              "type" : "number",
              "minimum" : 0.0
            },
            "stop_loss_enabled" : {
              "type" : "integer"
            },
            "trailing_enabled" : {
              "type" : "integer"
            },
            "trailing_arm_percentage" : {
              "type" : "number",
              "minimum" : 0.0
            },
            "trailing_percentage" : {
              "type" : "number",
              "minimum" : 0.0
            }
          }
        }
      },
      "title" : "SetShortSetting"
    },
    "HopperOutputGETSearch_optsItemSort_field" : {
      "type" : "string",
      "enum" : [ "entry_date", "entry_type" ]
    },
    "HopperPoolPATCHConfigTicker_rate" : {
      "type" : "string",
      "enum" : [ "highest_bid_lowest_ask", "last_tick_if_higher_lower", "always_last_tick" ]
    },
    "TriggerPOSTCooldown_time_unit" : {
      "type" : "string",
      "enum" : [ "minutes", "hours", "days" ]
    },
    "SetPositionSetting" : {
      "type" : "object",
      "properties" : {
        "position_ids" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        },
        "setting" : {
          "type" : "object",
          "properties" : {
            "take_profit" : {
              "type" : "number",
              "minimum" : 0.0
            },
            "auto_close_time" : {
              "type" : "number",
              "minimum" : 0.0
            },
            "stop_loss_percentage" : {
              "type" : "number",
              "minimum" : 0.0
            },
            "stop_loss_enabled" : {
              "type" : "integer"
            },
            "trailing_enabled" : {
              "type" : "integer"
            },
            "trailing_arm_percentage" : {
              "type" : "number",
              "minimum" : 0.0
            },
            "trailing_percentage" : {
              "type" : "number",
              "minimum" : 0.0
            }
          }
        }
      },
      "title" : "SetPositionSetting"
    },
    "TriggerPOST" : {
      "type" : "object",
      "required" : [ "trigger_name" ],
      "properties" : {
        "trigger_name" : {
          "type" : "string"
        },
        "enabled" : {
          "type" : "integer"
        },
        "exchange" : {
          "type" : "string"
        },
        "trading_pair" : {
          "type" : "array",
          "items" : {
            "type" : "string",
            "maxLength" : 10
          }
        },
        "candle_size" : {
          "$ref" : "#/definitions/TriggerPOSTCandle_size"
        },
        "indicators" : {
          "type" : "object",
          "properties" : {
            "price" : {
              "type" : "object",
              "properties" : {
                "condition" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsPriceCondition"
                },
                "value" : {
                  "type" : "number"
                }
              }
            },
            "pct_change" : {
              "type" : "object",
              "properties" : {
                "condition" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsPriceCondition"
                },
                "value" : {
                  "type" : "number"
                }
              }
            },
            "RSI" : {
              "type" : "object",
              "properties" : {
                "condition" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsPriceCondition"
                },
                "value" : {
                  "type" : "number"
                },
                "RSI_period" : {
                  "type" : "number"
                }
              }
            },
            "stochastic" : {
              "type" : "object",
              "properties" : {
                "condition" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsPriceCondition"
                },
                "value" : {
                  "type" : "number"
                },
                "stoch_fast_K_period" : {
                  "type" : "number"
                },
                "stoch_slow_K_period" : {
                  "type" : "number"
                },
                "stoch_slow_KMA_type" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsStochasticStoch_slow_KMA_type"
                },
                "stoch_slow_D_period" : {
                  "type" : "number"
                },
                "stoch_slow_DMA_type" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsStochasticStoch_slow_KMA_type"
                }
              }
            },
            "stoch_RSI" : {
              "type" : "object",
              "properties" : {
                "condition" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsPriceCondition"
                },
                "value" : {
                  "type" : "number"
                },
                "stoch_RSI_period" : {
                  "type" : "number"
                },
                "stoch_RSI_fast_K_period" : {
                  "type" : "number"
                },
                "stoch_RSI_fast_D_period" : {
                  "type" : "number"
                },
                "stoch_RSI_fast_DMA_type" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsStochasticStoch_slow_KMA_type"
                }
              }
            },
            "bollinger_bands" : {
              "type" : "object",
              "properties" : {
                "condition" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsBollinger_bandsCondition"
                },
                "bollinger_bands_period" : {
                  "type" : "number"
                },
                "bollinger_bands_deviation_upper_band" : {
                  "type" : "number"
                },
                "bollinger_bands_deviation_lower_band" : {
                  "type" : "number"
                },
                "bollinger_bands_MA_type" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsStochasticStoch_slow_KMA_type"
                }
              }
            },
            "MACD" : {
              "type" : "object",
              "properties" : {
                "condition" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsBollinger_bandsCondition"
                },
                "MACD_fast_period" : {
                  "type" : "number"
                },
                "MACD_slow_period" : {
                  "type" : "number"
                },
                "MACD_signal_period" : {
                  "type" : "number"
                }
              }
            },
            "EMA" : {
              "type" : "object",
              "properties" : {
                "condition" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsBollinger_bandsCondition"
                },
                "EMA_short_period" : {
                  "type" : "number"
                },
                "EMA_long_period" : {
                  "type" : "number"
                }
              }
            },
            "SMA" : {
              "type" : "object",
              "properties" : {
                "condition" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsBollinger_bandsCondition"
                },
                "SMA_short_period" : {
                  "type" : "number"
                },
                "SMA_long_period" : {
                  "type" : "number"
                }
              }
            },
            "KAMA" : {
              "type" : "object",
              "properties" : {
                "condition" : {
                  "$ref" : "#/definitions/TriggerPOSTIndicatorsBollinger_bandsCondition"
                },
                "KAMA_short_period" : {
                  "type" : "number"
                },
                "KAMA_long_period" : {
                  "type" : "number"
                }
              }
            }
          }
        },
        "actions" : {
          "type" : "object",
          "properties" : {
            "load_template" : {
              "type" : "integer"
            },
            "set_buying_status" : {
              "type" : "integer"
            },
            "set_selling_status" : {
              "type" : "integer"
            },
            "hold_positions" : {
              "type" : "array",
              "items" : {
                "type" : "string",
                "maxLength" : 10
              }
            },
            "release_positions" : {
              "type" : "array",
              "items" : {
                "type" : "string",
                "maxLength" : 10
              }
            },
            "set_pct_profit" : {
              "type" : "object",
              "properties" : {
                "coins" : {
                  "type" : "array",
                  "items" : {
                    "type" : "string",
                    "maxLength" : 10
                  }
                },
                "pct_profit" : {
                  "type" : "number",
                  "minimum" : 0.0
                }
              }
            },
            "buy" : {
              "type" : "array",
              "items" : {
                "type" : "string",
                "maxLength" : 10
              }
            },
            "sell" : {
              "type" : "array",
              "items" : {
                "type" : "string",
                "maxLength" : 10
              }
            },
            "sell_everything" : {
              "type" : "integer"
            },
            "send_email_msg" : {
              "type" : "string",
              "maxLength" : 300
            }
          }
        },
        "cooldown_until" : {
          "type" : "integer"
        },
        "cooldown_time_unit" : {
          "$ref" : "#/definitions/TriggerPOSTCooldown_time_unit"
        }
      },
      "title" : "TriggerPOST"
    },
    "HopperPoolPATCHConfigAdvanced_settingsCandle_size" : {
      "type" : "string",
      "enum" : [ "5_min", "15_min", "30_min", "1_hour", "2_hours", "4_hours", "1_day" ]
    },
    "HopperConfigPATCHConfigDCA_order_size" : {
      "type" : "string",
      "enum" : [ "double_down", "triple_down" ]
    },
    "HopperConfigPATCHConfigTicker_rate" : {
      "type" : "string",
      "enum" : [ "highest_bid_lowest_ask", "last_tick_if_higher_lower", "always_last_tick" ]
    },
    "ShortUpdatePost" : {
      "type" : "object",
      "properties" : {
        "take_profit" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "stop_loss" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "stop_loss_percentage" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "stop_loss_timeout_count" : {
          "type" : "integer",
          "minimum" : 0.0
        },
        "stop_loss_timeout_val" : {
          "type" : "string",
          "enum" : [ "minutes", "hours", "days" ]
        },
        "trailing_stop_loss" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "trailing_stop_loss_percentage" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "trailing_stop_loss_arm" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "auto_close" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "auto_close_time" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "auto_remove" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "auto_remove_time" : {
          "type" : "number",
          "minimum" : 0.0
        }
      },
      "title" : "ShortUpdatePost"
    },
    "PositionHoldPOST" : {
      "type" : "object",
      "required" : [ "position_id" ],
      "properties" : {
        "position_id" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        }
      },
      "title" : "PositionHoldPOST"
    },
    "StrategyPOST" : {
      "type" : "object",
      "properties" : {
        "name" : {
          "type" : "string",
          "maxLength" : 100
        },
        "description" : {
          "type" : "string",
          "maxLength" : 255
        },
        "image" : {
          "type" : "string",
          "maxLength" : 255
        },
        "config" : {
          "type" : "object",
          "properties" : {
            "id" : {
              "type" : "number",
              "minimum" : 0.0
            },
            "name" : {
              "type" : "string"
            },
            "chartperiod" : {
              "type" : "string"
            },
            "params" : {
              "type" : "string"
            },
            "type" : {
              "type" : "string"
            },
            "description" : {
              "type" : "string"
            },
            "signal_when" : {
              "type" : "string"
            },
            "signal_when_value" : {
              "type" : "string"
            },
            "candle_value" : {
              "type" : "string"
            },
            "candle_pattern" : {
              "type" : "string"
            },
            "keep_signal" : {
              "type" : "string"
            }
          }
        },
        "min_buys" : {
          "type" : "number",
          "minimum" : 0.0
        },
        "min_sells" : {
          "type" : "number",
          "minimum" : 0.0
        }
      },
      "title" : "StrategyPOST"
    },
    "PositionRemoveDELETE" : {
      "type" : "object",
      "title" : "PositionRemoveDELETE"
    }
  }
}