---
updatedAt: 2025-08-27T20:58:57.000Z
agentTools:
  projectIndex: https://developer.leap.energy/llms.txt
---

# Search for bids that match the input filters

Search for bids that match the input filters. A start and end date must be specified when searching for bids. 
Note: for performance reasons bids older than three months might be archived and are not available anymore via API.

> 🚧 CAISO Only & Generally Leap Managed
>
> Submitting bids is only applicable for the CAISO wholesale marketplace.  Most partners leverage Leap to manage bids on their behalf based on their dispatch preferences (frequency & timing).  However, these bid endpoints are available for partners that would like to manage their own bids.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "contact": {
      "email": "apiteam@leap.energy"
    },
    "description": "Submit bids through the Leap Bidding API",
    "termsOfService": "https://leap.energy/terms/",
    "title": "Leap Bidding API",
    "version": "1.1"
  },
  "externalDocs": {
    "description": "Find out more about Leap API",
    "url": "https://developer.leap.energy/"
  },
  "servers": [
    {
      "url": "https://api.staging.leap.energy/v1.1"
    },
    {
      "url": "https://api.leap.energy/v1.1"
    }
  ],
  "security": [
    {
      "http": []
    }
  ],
  "paths": {
    "/account/{accountId}/bidding/bids/search": {
      "post": {
        "description": "Search for bids that match the input filters. A start and end date must be specified when searching for bids. \nNote: for performance reasons bids older than three months might be archived and are not available anymore via API.\n",
        "operationId": "searchBids",
        "parameters": [
          {
            "description": "The UUID of your account",
            "explode": false,
            "in": "path",
            "name": "accountId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchBidsRequest"
              }
            }
          },
          "description": "Filters for searching bids",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchBidsResponse"
                }
              }
            },
            "description": "A paginated list of bids that matched the search input"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "The request could not be parsed or is invalid"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "No access to this resource"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Resource not found"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unexpected error"
          }
        },
        "summary": "Search for bids that match the input filters",
        "tags": [
          "bids"
        ],
        "x-codegen-request-body-name": "request"
      }
    }
  },
  "components": {
    "schemas": {
      "MarketStatus": {
        "description": "The status of the internal market\n* `Open` - Market is open and accepting new bids, Accepted and Rejected bids can still be updated\n* `Processing` - Market is closed and processing bids\n* `Cleared` - Market is closed and finished processing, potential dispatches are available\n* `Unknown` - The market state is currently unknown\n",
        "enum": [
          "Open",
          "Processing",
          "Cleared",
          "Unknown"
        ],
        "type": "string"
      },
      "BidStatus": {
        "description": "The status of the bid submission\n* `Received` - Bid has been received by Leap, but still has to be validated\n* `Accepted` - Bid has been accepted for processing by the market\n* `Rejected` - Bid has not been accepted by the market\n* `Error` - An unforeseen case occurred, theoretically bids will never enter this state\n",
        "enum": [
          "Received",
          "Accepted",
          "Rejected",
          "Error"
        ],
        "type": "string"
      },
      "CurvePoint": {
        "description": "A quantity/price pair on the bid curve",
        "properties": {
          "quantity_in_kw": {
            "description": "The amount of the price point. The quantity must be specified in kW.",
            "format": "double",
            "maximum": 1000000,
            "minimum": 0,
            "type": "number"
          },
          "price": {
            "description": "The price of the price point in $/kWh.",
            "format": "double",
            "maximum": 1000,
            "minimum": 0,
            "type": "number"
          }
        },
        "required": [
          "price",
          "quantity_in_kw"
        ],
        "type": "object"
      },
      "SearchBidsRequest": {
        "description": "The request object for searching bids",
        "example": {
          "start_date": "2023-01-28T00:00:00Z",
          "end_date": "2023-02-12T23:00:00Z",
          "meter_ids": [
            "12237538-6685-4187-8dc4-2a05d35afb24",
            "0cd9cc62-b3ac-451d-8340-86287a253da5"
          ],
          "market_type": "day-ahead"
        },
        "properties": {
          "start_date": {
            "description": "Start datetime range to get bids for (inclusive)",
            "example": "2023-01-28T00:00:00Z",
            "format": "date-time",
            "type": "string"
          },
          "end_date": {
            "description": "End datetime range to get bids for (inclusive).\nEnd date must be max 24 hours after the start date\n",
            "example": "2023-02-12T23:00:00Z",
            "format": "date-time",
            "type": "string"
          },
          "meter_ids": {
            "description": "Meter ids to get bids for. Limited at a 100 meters per request",
            "items": {
              "$ref": "#/components/schemas/MeterId"
            },
            "type": "array"
          },
          "market_type": {
            "$ref": "#/components/schemas/MarketType"
          },
          "page_token": {
            "description": "Token of the page to request. Use `null` to request a new batch of results",
            "type": "string"
          }
        },
        "required": [
          "end_date",
          "start_date"
        ],
        "type": "object"
      },
      "SearchBidsResponse": {
        "description": "The response object for searching bids",
        "example": {
          "next_page_token": "<token>",
          "results": [
            {
              "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
              "timeslots": [
                {
                  "start_time": "2023-01-28T16:00:00Z",
                  "end_time": "2023-01-28T17:00:00Z",
                  "market_status": "Open",
                  "market_type": "day-ahead",
                  "latest_version": 1,
                  "versions": [
                    {
                      "value": {
                        "curve": [
                          {
                            "quantity_in_kw": 80,
                            "price": 0.14
                          },
                          {
                            "quantity_in_kw": 100,
                            "price": 0.16
                          }
                        ],
                        "latest_state_change": "2023-01-24T14:00:00Z",
                        "date_received": "2023-01-24T12:00:00Z",
                        "status": "Received"
                      },
                      "key": 1
                    }
                  ]
                },
                {
                  "start_time": "2023-01-28T17:00:00Z",
                  "end_time": "2023-01-28T18:00:00Z",
                  "market_status": "Open",
                  "market_type": "day-ahead",
                  "latest_version": 1,
                  "versions": [
                    {
                      "value": {
                        "curve": [
                          {
                            "quantity_in_kw": 80,
                            "price": 0.14
                          },
                          {
                            "quantity_in_kw": 100,
                            "price": 0.16
                          }
                        ],
                        "latest_state_change": "2023-01-24T14:00:00Z",
                        "date_received": "2023-01-24T12:00:00Z",
                        "status": "Accepted"
                      },
                      "key": 1
                    }
                  ]
                }
              ]
            },
            {
              "meter_id": "4a4b0s0e-0b8a-43b9-b35d-6489e6daee91",
              "timeslots": [
                {
                  "start_time": "2023-01-28T16:00:00Z",
                  "end_time": "2023-01-28T17:00:00Z",
                  "market_status": "Open",
                  "market_type": "day-ahead",
                  "latest_version": 1,
                  "versions": [
                    {
                      "value": {
                        "curve": [
                          {
                            "quantity_in_kw": 80,
                            "price": 0.14
                          },
                          {
                            "quantity_in_kw": 100,
                            "price": 0.16
                          }
                        ],
                        "latest_state_change": "2023-01-24T14:00:00Z",
                        "date_received": "2023-01-24T12:00:00Z",
                        "status": "Received"
                      },
                      "key": 1
                    }
                  ]
                },
                {
                  "start_time": "2023-01-28T17:00:00Z",
                  "end_time": "2023-01-28T18:00:00Z",
                  "market_status": "Open",
                  "market_type": "day-ahead",
                  "latest_version": 1,
                  "versions": [
                    {
                      "value": {
                        "curve": [
                          {
                            "quantity_in_kw": 80,
                            "price": 0.14
                          },
                          {
                            "quantity_in_kw": 100,
                            "price": 0.16
                          }
                        ],
                        "latest_state_change": "2023-01-24T14:00:00Z",
                        "date_received": "2023-01-24T12:00:00Z",
                        "status": "Accepted"
                      },
                      "key": 1
                    }
                  ]
                }
              ]
            }
          ]
        },
        "properties": {
          "next_page_token": {
            "description": "Token to be used in a subsequent request to get the next batch of results.\n`null` will be returned when the last page of results has been reached.\n",
            "type": "string"
          },
          "results": {
            "description": "A list of the bids that were found.",
            "items": {
              "$ref": "#/components/schemas/VersionedBid"
            },
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "VersionedBid": {
        "description": "All versions of a bid. Note that versioning of bids is deprecated and only a single version of a bid will be returned",
        "properties": {
          "meter_id": {
            "description": "The unique identifier of a meter",
            "format": "uuid",
            "type": "string"
          },
          "timeslots": {
            "description": "A list of all timeslots for this bid",
            "items": {
              "$ref": "#/components/schemas/VersionedTimeslot"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "VersionedTimeslot": {
        "description": "A specific version of a timeslot. Note that versioning of bids is deprecated and only a single version of a timeslot will be returned",
        "properties": {
          "start_time": {
            "description": "The start time of the bid",
            "example": "2023-01-28T16:00:00Z",
            "format": "date-time",
            "type": "string"
          },
          "end_time": {
            "description": "The end time of the bid",
            "example": "2023-01-28T21:00:00Z",
            "format": "date-time",
            "type": "string"
          },
          "latest_version": {
            "description": "Indicating the version of the bid. This field has been deprecated and will always return \"1\".",
            "type": "integer"
          },
          "market_status": {
            "$ref": "#/components/schemas/MarketStatus"
          },
          "versions": {
            "description": "A list of the stored bids. Versioning of bids has been deprecated. This list will only contain the currently active bid.",
            "items": {
              "$ref": "#/components/schemas/BidVersion"
            },
            "type": "array"
          },
          "market_type": {
            "$ref": "#/components/schemas/MarketType"
          }
        },
        "required": [
          "end_time",
          "latest_version",
          "start_time",
          "versions"
        ],
        "type": "object"
      },
      "BidVersion": {
        "description": "A version of a bid. Versioning of bids has been deprecated. There will only be a single version active at a given time.",
        "properties": {
          "key": {
            "description": "The version of the bid. Versioning of bids has been deprecated. The key of this field will always be \"1\".",
            "type": "integer"
          },
          "value": {
            "$ref": "#/components/schemas/BidTimeslotVersion"
          }
        },
        "type": "object"
      },
      "BidTimeslotVersion": {
        "description": "A specific version of a timeslot. Note that versioning of bids is deprecated and only a single version of a timeslot will be returned",
        "properties": {
          "date_received": {
            "description": "The date indicating when the bid was submitted.",
            "format": "date-time",
            "type": "string"
          },
          "latest_state_change": {
            "description": "The date indicating when the bid was last modified.",
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/BidStatus"
          },
          "curve": {
            "description": "A list of quantity/price pairs",
            "items": {
              "$ref": "#/components/schemas/CurvePoint"
            },
            "type": "array"
          }
        },
        "required": [
          "curve",
          "date_received",
          "latest_state_change",
          "status"
        ],
        "type": "object"
      },
      "MeterId": {
        "description": "The unique identifier of a meter",
        "format": "uuid",
        "type": "string"
      },
      "MarketType": {
        "description": "This can have the value \"day-head\" or \"hour-ahead\". It is used to decide the appropriate market to bid in.",
        "enum": [
          "day-ahead",
          "hour-ahead"
        ],
        "type": "string",
        "x-enum-varnames": [
          "DAY_AHEAD",
          "HOUR_AHEAD"
        ]
      },
      "ErrorResponse": {
        "description": "A server response indicating something went wrong. See the message for more details.",
        "example": {
          "code": "BAD_REQUEST",
          "message": "message"
        },
        "properties": {
          "code": {
            "description": "The HTTP status",
            "enum": [
              "BAD_REQUEST",
              "UNAUTHORIZED",
              "FORBIDDEN",
              "NOT_FOUND",
              "METHOD_NOT_ALLOWED",
              "UNSUPPORTED_MEDIA_TYPE",
              "SERVICE_UNAVAILABLE",
              "INTERNAL_SERVER_ERROR"
            ],
            "type": "string"
          },
          "message": {
            "description": "A message describing the issue",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "http": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```