{
  "opencollection": "1.0.0",
  "info": {
    "name": "Bullish Trading History API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "history",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Historical Orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.exchange.bullish.com/trading-api/v2/history/orders",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query"
              },
              {
                "name": "orderId",
                "value": "",
                "type": "query"
              },
              {
                "name": "clientOrderId",
                "value": "",
                "type": "query",
                "description": "Unique numeric (i64) identifier generated on the client side expressed as a string value"
              },
              {
                "name": "side",
                "value": "",
                "type": "query",
                "description": "order side"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "order status"
              },
              {
                "name": "tradingAccountId",
                "value": "",
                "type": "query",
                "description": "Id of the trading account"
              },
              {
                "name": "createdAtDatetime[gte]",
                "value": "",
                "type": "query",
                "description": "start timestamp of period, ISO 8601 with millisecond as string"
              },
              {
                "name": "createdAtDatetime[lte]",
                "value": "",
                "type": "query",
                "description": "end timestamp of period, ISO 8601 with millisecond as string"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve a list of orders placed by a trading account with specified filters.\n- On a single query request you can retrieve data over a 7 day window, with the data available for the last 90 days\n\nThis endpoint requires [authentication](/rest/authentication#generate-a-jwt-token) and supports [pagination](/rest/general/pagination).\nTo filter by `createdAtDatetime` and `createdAtTimestamp`, additional parameters are required. For detailed instructions, see the [Filtering Support](/rest/general/filte"
        },
        {
          "info": {
            "name": "Get Historical Trades",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.exchange.bullish.com/trading-api/v1/history/trades",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query"
              },
              {
                "name": "orderId",
                "value": "",
                "type": "query",
                "description": "unique order ID"
              },
              {
                "name": "tradeId",
                "value": "",
                "type": "query",
                "description": "unique trade ID"
              },
              {
                "name": "clientOrderId",
                "value": "",
                "type": "query",
                "description": "unique numeric (i64) identifier generated on the client side, only orderId or clientOrderId can be used"
              },
              {
                "name": "tradingAccountId",
                "value": "",
                "type": "query",
                "description": "Id of the trading account"
              },
              {
                "name": "createdAtDatetime[gte]",
                "value": "",
                "type": "query",
                "description": "start timestamp of period, ISO 8601 with millisecond as string"
              },
              {
                "name": "createdAtDatetime[lte]",
                "value": "",
                "type": "query",
                "description": "end timestamp of period, ISO 8601 with millisecond as string"
              },
              {
                "name": "otcTradeId",
                "value": "",
                "type": "query",
                "description": "unique Bullish otc trade id"
              },
              {
                "name": "clientOtcTradeId",
                "value": "",
                "type": "query",
                "description": "unique client otc trade id"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get a list of trades based on specified filters.\n- requires [bearer token](/rest/authentication#add-authenticated-request-header) in authorization header\n- On a single query request you can retrieve data over a 7 day window, with the data available for the last 90 days\n- [supports pagination](/rest/general/pagination)\n- filtering on `createdAtDatetime`, `createdAtTimestamp` requires additional keywords, [see filtering support](/rest/general/filtering)\n\n**Ratelimited:** `True`\n"
        },
        {
          "info": {
            "name": "Get Historical Hourly Derivatives Settlement",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.exchange.bullish.com/trading-api/v1/history/derivatives-settlement",
            "params": [
              {
                "name": "tradingAccountId",
                "value": "",
                "type": "query",
                "description": "Id of the trading account. `tradingAccountId` is mandatory in the query for users with multiple trading accounts. For users with a single trading account, it can be automatically retrieved from the login."
              },
              {
                "name": "symbol",
                "value": "BTC-USDC-PERP",
                "type": "query"
              },
              {
                "name": "settlementDatetime[gte]",
                "value": "",
                "type": "query",
                "description": "start timestamp of window, ISO 8601 with millisecond as string"
              },
              {
                "name": "settlementDatetime[lte]",
                "value": "",
                "type": "query",
                "description": "end timestamp of window, ISO 8601 with millisecond as string"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get historical derivatives settlement. \n- [supports pagination](/rest/general/pagination)\n- filtering on `settlementDatetime` requires additional keywords, [see filtering support](/rest/general/filtering)\n- On a single query request you can retrieve data over a 7 day window, with the data available for the last 90 days. By default the results are returned and sorted in descending order if specific settlement datetime is not specified.\n"
        },
        {
          "info": {
            "name": "Get Historical Account Transfer",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.exchange.bullish.com/trading-api/v1/history/transfer",
            "params": [
              {
                "name": "tradingAccountId",
                "value": "",
                "type": "query",
                "description": "Id of the trading account. `tradingAccountId` is mandatory in the query for users with multiple trading accounts. For users with a single trading account, it can be automatically retrieved from the login."
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Status of the transfer request. Defaults to `CLOSED`"
              },
              {
                "name": "requestId",
                "value": "",
                "type": "query",
                "description": "Unique identifier of the transfer request"
              },
              {
                "name": "assetSymbol",
                "value": "",
                "type": "query",
                "description": "Asset symbol of the transfer request"
              },
              {
                "name": "createdAtDatetime[gte]",
                "value": "",
                "type": "query",
                "description": "start datetime of window, ISO 8601 with millisecond as string"
              },
              {
                "name": "createdAtDatetime[lte]",
                "value": "",
                "type": "query",
                "description": "end datetime of window, ISO 8601 with millisecond as string"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get historical transfers.\n- [supports pagination](/rest/general/pagination)\n- filtering on `createdAtDatetime` and `createdAtTimestamp` requires additional keywords, [see filtering support](/rest/general/filtering)\n- On a single query request you can retrieve data over a 7 day window, with the data available for the last 90 days\n"
        },
        {
          "info": {
            "name": "Get Historical Hourly Borrow Interest",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.exchange.bullish.com/trading-api/v1/history/borrow-interest",
            "params": [
              {
                "name": "tradingAccountId",
                "value": "",
                "type": "query",
                "description": "Id of the trading account. `tradingAccountId` is mandatory in the query for users with multiple trading accounts. For users with a single trading account, it can be automatically retrieved from the login."
              },
              {
                "name": "assetSymbol",
                "value": "BTC",
                "type": "query"
              },
              {
                "name": "createdAtDatetime[gte]",
                "value": "",
                "type": "query",
                "description": "start timestamp of period, ISO 8601 with millisecond as string"
              },
              {
                "name": "createdAtDatetime[lte]",
                "value": "",
                "type": "query",
                "description": "end timestamp of period, ISO 8601 with millisecond as string"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get Historical Hourly Borrow Interest. Each entry denotes the hourly quantities for the specific asset. \nTotal borrowed quantity is inclusive of interest. `interest = totalBorrowedQuantity - borrowedQuantity` \nwhich denotes the interest charged in the particular hour for the asset.\n- [supports pagination](/rest/general/pagination)\n- filtering `createdAtDatetime`, `createdAtTimestamp` requires additional keywords, [see filtering support](/rest/general/filtering)\n- On a single query request you ca"
        }
      ]
    }
  ],
  "bundled": true
}