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

# Place, modify or cancel a bid

Initial bids must be placed at least 24 hours before the start of the trading day for Leap’s Pay-as-Bid auction.

Bids are sets of pairs (Price, Capacity) from which a bid curve is constructed. The bid curve is the function of the form Price = F(Capacity) which determines at which price a demand response provider is willing to curtail a certain volume of load.

Example: A storage provider is bidding in capacity. A sample bid for a given hour may have the form shown below:

Price ($/kWh) - Capacity (kW)
0.18 $/kWh - 40 kW
0.24 $/kWh - 80 kW
0.28 $/kWh - 200 kW

According to this bid, the provider is willing to curtail the first 40kW of load for 18 cents per kWh. If a greater volume is needed, the same provider is willing to curtail any amount of energy from zero up to 80 kW at $0.24/kWh, up to 200 kW for $0.28/kWh.

*General guidelines*
All datetimes must be provided in the UTC timezone

*Modifying bids*
Bids can be modified by placing a new bid for the same meter/timeslot combination. The previous curve will be completely replaced by the new curve.

*Cancelling bids*
A bid can be cancelled until the market closes. Cancel a bid by submitting an empty curve for a meter/timeslot combination.

> 🚧 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/bid": {
      "post": {
        "description": "Initial bids must be placed at least 24 hours before the start of the trading day for Leap’s Pay-as-Bid auction.\n\nBids are sets of pairs (Price, Capacity) from which a bid curve is constructed. The bid curve is the function of the form Price = F(Capacity) which determines at which price a demand response provider is willing to curtail a certain volume of load.\n\nExample: A storage provider is bidding in capacity. A sample bid for a given hour may have the form shown below:\n\nPrice ($/kWh) - Capacity (kW)\n0.18 $/kWh - 40 kW\n0.24 $/kWh - 80 kW\n0.28 $/kWh - 200 kW\n\nAccording to this bid, the provider is willing to curtail the first 40kW of load for 18 cents per kWh. If a greater volume is needed, the same provider is willing to curtail any amount of energy from zero up to 80 kW at $0.24/kWh, up to 200 kW for $0.28/kWh.\n\n*General guidelines*\nAll datetimes must be provided in the UTC timezone\n\n*Modifying bids*\nBids can be modified by placing a new bid for the same meter/timeslot combination. The previous curve will be completely replaced by the new curve.\n\n*Cancelling bids*\nA bid can be cancelled until the market closes. Cancel a bid by submitting an empty curve for a meter/timeslot combination.\n",
        "operationId": "submitBid",
        "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/SubmitBidRequest"
              }
            }
          },
          "description": "The bid to be submitted for this account",
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitBidResponse"
                }
              }
            },
            "description": "The bid was submitted successfully"
          },
          "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"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unexpected error"
          }
        },
        "summary": "Place, modify or cancel a bid",
        "tags": [
          "bids"
        ],
        "x-codegen-request-body-name": "request"
      }
    }
  },
  "components": {
    "schemas": {
      "Currency": {
        "description": "The currency to use for the trade",
        "enum": [
          "USD"
        ],
        "type": "string"
      },
      "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"
      },
      "Bid": {
        "description": "The object describing a bid",
        "example": {
          "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "timeslots": [
            {
              "start_time": "2023-01-28T16:00:00Z",
              "curve": [
                {
                  "quantity_in_kw": 90,
                  "price": 0.15
                },
                {
                  "quantity_in_kw": 120,
                  "price": 0.25
                }
              ],
              "end_time": "2023-01-28T17:00:00Z"
            },
            {
              "start_time": "2023-01-28T17:00:00Z",
              "curve": [
                {
                  "quantity_in_kw": 90,
                  "price": 0.15
                },
                {
                  "quantity_in_kw": 120,
                  "price": 0.25
                }
              ],
              "end_time": "2023-01-28T18:00:00Z"
            },
            {
              "start_time": "2023-01-28T18:00:00Z",
              "curve": [
                {
                  "quantity_in_kw": 90,
                  "price": 0.17
                },
                {
                  "quantity_in_kw": 120,
                  "price": 0.27
                }
              ],
              "end_time": "2023-01-28T19:00:00Z"
            },
            {
              "start_time": "2023-01-28T19:00:00Z",
              "curve": [
                {
                  "quantity_in_kw": 90,
                  "price": 0.2
                },
                {
                  "quantity_in_kw": 120,
                  "price": 0.3
                }
              ],
              "end_time": "2023-01-28T20:00:00Z"
            }
          ],
          "market_type": "day-ahead"
        },
        "properties": {
          "meter_id": {
            "description": "The unique identifier of a meter",
            "format": "uuid",
            "type": "string"
          },
          "market_type": {
            "$ref": "#/components/schemas/MarketType"
          },
          "timeslots": {
            "description": "A collection of all timeslots of a bid.",
            "items": {
              "$ref": "#/components/schemas/BidTimeslot"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "meter_id",
          "timeslots"
        ],
        "type": "object"
      },
      "BidWithStatus": {
        "description": "A bid containing information about the status of the bid.",
        "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/BidTimeslotWithStatus"
            },
            "type": "array"
          }
        },
        "required": [
          "meter_id",
          "timeslots"
        ],
        "type": "object"
      },
      "BidTimeslot": {
        "description": "The timeslot of a bid. The timeslot describes the bid for a specific hour of the day. The start and end time must be given in periods of a full hour.",
        "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"
          },
          "curve": {
            "description": "A list of quantity/price pairs",
            "items": {
              "$ref": "#/components/schemas/CurvePoint"
            },
            "type": "array"
          }
        },
        "required": [
          "curve",
          "end_time",
          "start_time"
        ],
        "type": "object"
      },
      "BidTimeslotWithStatus": {
        "description": "A timeslot of bid containing information about the status.",
        "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"
          },
          "curve": {
            "description": "A list of quantity/price pairs",
            "items": {
              "$ref": "#/components/schemas/CurvePoint"
            },
            "type": "array"
          },
          "version": {
            "description": "The version of the bid. Bid versioning is deprecated. The version will always be \"1\".",
            "type": "integer"
          },
          "bid_status": {
            "$ref": "#/components/schemas/BidStatus"
          },
          "market_status": {
            "$ref": "#/components/schemas/MarketStatus"
          },
          "market_type": {
            "$ref": "#/components/schemas/MarketType"
          }
        },
        "required": [
          "bid_status",
          "curve",
          "end_time",
          "start_time",
          "version"
        ],
        "type": "object"
      },
      "SubmitBidRequest": {
        "description": "The request object for submitting bids.",
        "example": {
          "bids": [
            {
              "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
              "timeslots": [
                {
                  "start_time": "2023-01-28T16:00:00Z",
                  "curve": [
                    {
                      "quantity_in_kw": 90,
                      "price": 0.15
                    },
                    {
                      "quantity_in_kw": 120,
                      "price": 0.25
                    }
                  ],
                  "end_time": "2023-01-28T17:00:00Z"
                },
                {
                  "start_time": "2023-01-28T17:00:00Z",
                  "curve": [
                    {
                      "quantity_in_kw": 90,
                      "price": 0.15
                    },
                    {
                      "quantity_in_kw": 120,
                      "price": 0.25
                    }
                  ],
                  "end_time": "2023-01-28T18:00:00Z"
                },
                {
                  "start_time": "2023-01-28T18:00:00Z",
                  "curve": [
                    {
                      "quantity_in_kw": 90,
                      "price": 0.17
                    },
                    {
                      "quantity_in_kw": 120,
                      "price": 0.27
                    }
                  ],
                  "end_time": "2023-01-28T19:00:00Z"
                },
                {
                  "start_time": "2023-01-28T19:00:00Z",
                  "curve": [
                    {
                      "quantity_in_kw": 90,
                      "price": 0.2
                    },
                    {
                      "quantity_in_kw": 120,
                      "price": 0.3
                    }
                  ],
                  "end_time": "2023-01-28T20:00:00Z"
                }
              ],
              "market_type": "day-ahead"
            },
            {
              "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
              "timeslots": [
                {
                  "start_time": "2023-01-28T16:00:00Z",
                  "curve": [
                    {
                      "quantity_in_kw": 90,
                      "price": 0.15
                    },
                    {
                      "quantity_in_kw": 120,
                      "price": 0.25
                    }
                  ],
                  "end_time": "2023-01-28T17:00:00Z"
                },
                {
                  "start_time": "2023-01-28T17:00:00Z",
                  "curve": [
                    {
                      "quantity_in_kw": 90,
                      "price": 0.15
                    },
                    {
                      "quantity_in_kw": 120,
                      "price": 0.25
                    }
                  ],
                  "end_time": "2023-01-28T18:00:00Z"
                },
                {
                  "start_time": "2023-01-28T18:00:00Z",
                  "curve": [
                    {
                      "quantity_in_kw": 90,
                      "price": 0.17
                    },
                    {
                      "quantity_in_kw": 120,
                      "price": 0.27
                    }
                  ],
                  "end_time": "2023-01-28T19:00:00Z"
                },
                {
                  "start_time": "2023-01-28T19:00:00Z",
                  "curve": [
                    {
                      "quantity_in_kw": 90,
                      "price": 0.2
                    },
                    {
                      "quantity_in_kw": 120,
                      "price": 0.3
                    }
                  ],
                  "end_time": "2023-01-28T20:00:00Z"
                }
              ],
              "market_type": "day-ahead"
            }
          ],
          "currency": "USD"
        },
        "properties": {
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "bids": {
            "description": "The list of bids to submit into the market.",
            "items": {
              "$ref": "#/components/schemas/Bid"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "bids",
          "currency"
        ],
        "type": "object"
      },
      "ValidationType": {
        "description": "The type of validation message. At the moment only \"REJECTION\" is supported.",
        "enum": [
          "REJECTION"
        ],
        "type": "string"
      },
      "ValidationRule": {
        "description": "A rule for validating an API request.",
        "properties": {
          "code": {
            "description": "A unique code to identify the validation rule. Please send this when reporting issues with the API.",
            "type": "integer"
          },
          "type": {
            "$ref": "#/components/schemas/ValidationType"
          },
          "message": {
            "description": "A message describing the validation rule",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SubmitBidResponse": {
        "description": "The response object for submitting bids.",
        "example": {
          "currency": "USD",
          "results": [
            {
              "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
              "timeslots": [
                {
                  "start_time": "2023-01-28T16:00:00Z",
                  "end_time": "2023-01-28T17:00:00Z",
                  "bid_status": "Accepted",
                  "market_type": "day-ahead",
                  "market_status": "Open",
                  "version": 1,
                  "curve": [
                    {
                      "quantity_in_kw": 60,
                      "price": 0.25
                    },
                    {
                      "quantity_in_kw": 80,
                      "price": 0.28
                    }
                  ]
                },
                {
                  "start_time": "2023-01-28T17:00:00Z",
                  "end_time": "2023-01-28T18:00:00Z",
                  "bid_status": "Accepted",
                  "market_status": "Open",
                  "version": 1,
                  "market_type": "day-ahead",
                  "curve": [
                    {
                      "quantity_in_kw": 60,
                      "price": 0.25
                    },
                    {
                      "quantity_in_kw": 80,
                      "price": 0.28
                    }
                  ]
                }
              ]
            }
          ]
        },
        "properties": {
          "validations": {
            "description": "The validation messages returned by the API. The following API validation rules are currently specified:\n  \n  * 404 - A bid contains timeslot(s) for a closed market.\n  * 406 - A bid contains timeslot(s) which do not start at a full hour.\n  * 407 - A bid contains timeslot(s) which do not have a range of one hour.\n  * 408 - A bid contains meter(s) which are not assigned to this account.\n  * 409 - A bid contains meter(s) which are not assigned to a resource.\n  * 410 - A bid curve does not meet the minimum quantity.\n  * 411 - A bid curve price that is not within the range of $ 0.01/kWh to $ 1.00/kWh.\n  * 412 - A bid curve is not increasing in power or price.\n  * 414 - The maximum number of meters in a single bid request has been exceeded. The limit is set to 100 per request.\n",
            "items": {
              "$ref": "#/components/schemas/ValidationRule"
            },
            "type": "array"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "results": {
            "description": "The list of bids that were submitted. Check the status of the bids and the validations to see if the bid submission was successful.",
            "items": {
              "$ref": "#/components/schemas/BidWithStatus"
            },
            "type": "array"
          }
        },
        "required": [
          "currency",
          "results",
          "validations"
        ],
        "type": "object"
      },
      "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
  }
}
```