> ## Documentation Index
> Fetch the complete documentation index at: https://edgeful.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# asian range breakout by size

> computes the asian session range, sizes it as a percentage of the asian low, and places each day in one of six size buckets (0-0.24% through >1.1%) plus a custom range. within each bucket, counts whether the first candle close outside the asian range is above or below it, paired with daily candle color, and returns a per-day detail table. configurable via Tokyo `start_time`/`end_time`, New York daily candle window bounds, `breakout_timeframe`, `custom_size_start`/`custom_size_end`, and `days_to_use`.



## OpenAPI

````yaml /openapi-public.json get /intraday_calculation/asian-range-breakout-by-size/{market_type}/{ticker}
openapi: 3.1.0
info:
  title: Edgeful API
  description: >-
    Public API reference for Edgeful market analysis. The bearer token is your
    Edgeful API key. Reports support the docs playground. Report responses
    include row-level output in `detailed` only when your plan includes
    row-level detail.
  version: 1.0.0
servers:
  - url: https://api.edgeful.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: reports
  - name: discovery
  - name: live data
  - name: settings
  - name: custom reports
  - name: optimizer
paths:
  /intraday_calculation/asian-range-breakout-by-size/{market_type}/{ticker}:
    get:
      tags:
        - reports
      summary: asian range breakout by size
      description: >-
        computes the asian session range, sizes it as a percentage of the asian
        low, and places each day in one of six size buckets (0-0.24% through
        >1.1%) plus a custom range. within each bucket, counts whether the first
        candle close outside the asian range is above or below it, paired with
        daily candle color, and returns a per-day detail table. configurable via
        Tokyo `start_time`/`end_time`, New York daily candle window bounds,
        `breakout_timeframe`, `custom_size_start`/`custom_size_end`, and
        `days_to_use`.
      operationId: >-
        asian_range_breakout_by_size_intraday_calculation_asian_range_breakout_by_size__market_type___ticker__get
      parameters:
        - name: ticker
          in: path
          required: true
          schema:
            type: string
            description: >-
              ticker symbol. format varies by `market_type`: stocks use a plain
              symbol (e.g., SPY), forex uses a 6-character pair (e.g., EURUSD),
              crypto uses a contract pair (e.g., BTCUSD), futures uses the root
              symbol (e.g., ES).
            examples:
              - SPY
              - EURUSD
              - BTCUSD
              - ES
            title: Ticker
          description: >-
            ticker symbol. format varies by `market_type`: stocks use a plain
            symbol (e.g., SPY), forex uses a 6-character pair (e.g., EURUSD),
            crypto uses a contract pair (e.g., BTCUSD), futures uses the root
            symbol (e.g., ES).
        - name: market_type
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/SessionMarketTypeEnum'
            description: >-
              market venue for the ticker, one of `forex`, `futures`, `crypto`.
              `stock` is not supported for this report.
            examples:
              - futures
              - forex
          description: >-
            market venue for the ticker, one of `forex`, `futures`, `crypto`.
            `stock` is not supported for this report.
        - name: start_date
          in: query
          required: true
          schema:
            type: string
            description: >-
              inclusive start date, `YYYY-MM-DD`, interpreted in the request
              `timezone`. sessions on or after this date are included in the
              calculation.
            examples:
              - '2024-01-01'
            title: Start Date
          description: >-
            inclusive start date, `YYYY-MM-DD`, interpreted in the request
            `timezone`. sessions on or after this date are included in the
            calculation.
        - name: end_date
          in: query
          required: true
          schema:
            type: string
            description: >-
              inclusive end date, `YYYY-MM-DD`, interpreted in the request
              `timezone`. sessions on or before this date are included in the
              calculation.
            examples:
              - '2024-12-31'
            title: End Date
          description: >-
            inclusive end date, `YYYY-MM-DD`, interpreted in the request
            `timezone`. sessions on or before this date are included in the
            calculation.
        - name: start_time
          in: query
          required: true
          schema:
            type: string
            description: >-
              asian range session start time, `HH:MM:SS`, interpreted in
              Asia/Tokyo.
            title: Start Time
          description: >-
            asian range session start time, `HH:MM:SS`, interpreted in
            Asia/Tokyo.
        - name: end_time
          in: query
          required: true
          schema:
            type: string
            description: >-
              asian range session end time, `HH:MM:SS`, interpreted in
              Asia/Tokyo.
            title: End Time
          description: asian range session end time, `HH:MM:SS`, interpreted in Asia/Tokyo.
        - name: candle_start_time
          in: query
          required: true
          schema:
            type: string
            description: >-
              daily candle window start time, `HH:MM:SS`, interpreted in
              America/New_York.
            title: Candle Start Time
          description: >-
            daily candle window start time, `HH:MM:SS`, interpreted in
            America/New_York.
        - name: candle_end_time
          in: query
          required: true
          schema:
            type: string
            description: >-
              daily candle window end time, `HH:MM:SS`, interpreted in
              America/New_York.
            title: Candle End Time
          description: >-
            daily candle window end time, `HH:MM:SS`, interpreted in
            America/New_York.
        - name: breakout_timeframe
          in: query
          required: false
          schema:
            enum:
              - 15min
              - 30min
            type: string
            description: >-
              candle timeframe used to identify the first close outside the
              Asian range. 30-minute closes are derived from complete pairs of
              15-minute bars.
            default: 15min
            title: Breakout Timeframe
          description: >-
            candle timeframe used to identify the first close outside the Asian
            range. 30-minute closes are derived from complete pairs of 15-minute
            bars.
        - name: custom_size_start
          in: query
          required: false
          schema:
            type: number
            minimum: 0
            description: >-
              lower bound, inclusive, of the custom asian range size bucket, as
              a percentage of the asian low.
            default: 0
            title: Custom Size Start
          description: >-
            lower bound, inclusive, of the custom asian range size bucket, as a
            percentage of the asian low.
        - name: custom_size_end
          in: query
          required: false
          schema:
            type: number
            minimum: 0
            description: >-
              upper bound, inclusive, of the custom asian range size bucket;
              unbounded when omitted.
            title: Custom Size End
          description: >-
            upper bound, inclusive, of the custom asian range size bucket;
            unbounded when omitted.
        - name: days_to_use
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
            description: >-
              optional list of weekdays to include; all weekdays are used when
              omitted.
            title: Days To Use
          description: >-
            optional list of weekdays to include; all weekdays are used when
            omitted.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsianRangeBreakoutBySizeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: >-
            The key's request limit, or the account already has its share of
            report calculations running (`too_many_report_calculations`, with
            `Retry-After`): nothing was computed, so repeat the request
            unchanged once one finishes.
          content:
            application/json:
              examples:
                api_key_rate_limit:
                  summary: api key rate limit
                  value:
                    detail: API key rate limit exceeded
                caller_at_limit:
                  summary: caller at limit
                  value:
                    detail:
                      detail: >-
                        too many report calculations running for this caller: at
                        most 10 at a time, 2 of them heavy (over 2 years of
                        history, or over 1 year of 1-minute bars). retry once
                        one finishes.
                      code: too_many_report_calculations
                server_at_capacity:
                  summary: server at capacity
                  value:
                    detail:
                      detail: >-
                        the server is running its maximum number of heavy report
                        calculations. retry shortly.
                      code: too_many_report_calculations
          headers:
            Retry-After:
              description: >-
                seconds to wait before repeating the request; absent on the
                key's request limit.
              schema:
                type: integer
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.edgeful.com/intraday_calculation/asian-range-breakout-by-size/<market_type>/<ticker>?start_date=<start_date>&end_date=<end_date>&start_time=<start_time>&end_time=<end_time>&candle_start_time=<candle_start_time>&candle_end_time=<candle_end_time>' \
              --header 'Authorization: Bearer <api-key>'
        - lang: python
          label: Python
          source: >-
            import requests


            url =
            "https://api.edgeful.com/intraday_calculation/asian-range-breakout-by-size/<market_type>/<ticker>?start_date=<start_date>&end_date=<end_date>&start_time=<start_time>&end_time=<end_time>&candle_start_time=<candle_start_time>&candle_end_time=<candle_end_time>"

            headers = {"Authorization": "Bearer <api-key>"}


            response = requests.get(url, headers=headers)

            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const url =
            "https://api.edgeful.com/intraday_calculation/asian-range-breakout-by-size/<market_type>/<ticker>?start_date=<start_date>&end_date=<end_date>&start_time=<start_time>&end_time=<end_time>&candle_start_time=<candle_start_time>&candle_end_time=<candle_end_time>";

            const options = {
              method: "GET",
              headers: { Authorization: "Bearer <api-key>" },
            };


            const response = await fetch(url, options);

            const data = await response.json();

            console.log(data);
        - lang: php
          label: PHP
          source: >-
            <?php

            $ch =
            curl_init("https://api.edgeful.com/intraday_calculation/asian-range-breakout-by-size/<market_type>/<ticker>?start_date=<start_date>&end_date=<end_date>&start_time=<start_time>&end_time=<end_time>&candle_start_time=<candle_start_time>&candle_end_time=<candle_end_time>");

            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");

            curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer
            <api-key>"]);

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

            $response = curl_exec($ch);

            curl_close($ch);

            echo $response;
        - lang: go
          label: Go
          source: |-
            package main

            import (
                "fmt"
                "io"
                "net/http"
            )

            func main() {
                req, _ := http.NewRequest("GET", "https://api.edgeful.com/intraday_calculation/asian-range-breakout-by-size/<market_type>/<ticker>?start_date=<start_date>&end_date=<end_date>&start_time=<start_time>&end_time=<end_time>&candle_start_time=<candle_start_time>&candle_end_time=<candle_end_time>", nil)
                req.Header.Set("Authorization", "Bearer <api-key>")
                resp, _ := http.DefaultClient.Do(req)
                defer resp.Body.Close()
                body, _ := io.ReadAll(resp.Body)
                fmt.Println(string(body))
            }
        - lang: java
          label: Java
          source: >-
            import java.net.URI;

            import java.net.http.HttpClient;

            import java.net.http.HttpRequest;

            import java.net.http.HttpResponse;


            HttpClient client = HttpClient.newHttpClient();

            HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create("https://api.edgeful.com/intraday_calculation/asian-range-breakout-by-size/<market_type>/<ticker>?start_date=<start_date>&end_date=<end_date>&start_time=<start_time>&end_time=<end_time>&candle_start_time=<candle_start_time>&candle_end_time=<candle_end_time>"))
                .header("Authorization", "Bearer <api-key>")
                .method("GET", HttpRequest.BodyPublishers.noBody())
                .build();
            HttpResponse<String> response = client.send(request,
            HttpResponse.BodyHandlers.ofString());

            System.out.println(response.body());
        - lang: ruby
          label: Ruby
          source: >-
            require "net/http"

            require "uri"


            uri =
            URI("https://api.edgeful.com/intraday_calculation/asian-range-breakout-by-size/<market_type>/<ticker>?start_date=<start_date>&end_date=<end_date>&start_time=<start_time>&end_time=<end_time>&candle_start_time=<candle_start_time>&candle_end_time=<candle_end_time>")

            request = Net::HTTP::Get.new(uri)

            request["Authorization"] = "Bearer <api-key>"


            response = Net::HTTP.start(uri.hostname, uri.port, use_ssl:
            uri.scheme == "https") do |http|
              http.request(request)
            end

            puts response.body
components:
  schemas:
    SessionMarketTypeEnum:
      type: string
      enum:
        - forex
        - futures
        - crypto
      title: SessionMarketTypeEnum
    AsianRangeBreakoutBySizeResponse:
      properties:
        startDate:
          type: string
          title: Startdate
        endDate:
          type: string
          title: Enddate
        sizes:
          items:
            type: string
          type: array
          title: Sizes
        summary:
          additionalProperties:
            items:
              $ref: '#/components/schemas/AsianRangeBreakoutSummaryRow'
            type: array
          type: object
          title: Summary
        detailed:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Detailed
          description: >-
            per-day detail; availability depends on the caller's tier. Present
            only for tiers that include detailed rows.
      type: object
      required:
        - startDate
        - endDate
        - sizes
        - summary
      title: AsianRangeBreakoutBySizeResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AsianRangeBreakoutSummaryRow:
      properties:
        category:
          type: string
          enum:
            - closed above AR
            - closed above AR green daily candle
            - closed above AR red daily candle
            - closed below AR
            - closed below AR green daily candle
            - closed below AR red daily candle
          title: Category
        frequency:
          type: integer
          title: Frequency
        percentage:
          type: integer
          title: Percentage
      type: object
      required:
        - category
        - frequency
        - percentage
      title: AsianRangeBreakoutSummaryRow
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Send your Edgeful API key in the Authorization header as `Bearer
        <api-key>` (for example, `Bearer ef_live_<random>`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.