# ----------------------------------------------------------------------------
# AUTO-GENERATED — do not edit by hand.
# Published from oz-autochartist/ACLive-python (docs/openapi.yaml) by CI via an
# automated Pull Request. Edit the source spec in ACLive-python instead.
# generated_at: 2026-08-06T10:30:07Z
# commit_sha:   0dcc009fefe51fffd82b27b89e0804ca6e5c1462
# source:       https://github.com/oz-autochartist/ACLive-python/blob/main/docs/openapi.yaml
# ----------------------------------------------------------------------------
openapi: 3.1.0
info:
  title: Technical Analysis API
  version: 1.0.0
  description: "This document describes Autochartist Trading Opportunities.\n\n# API Request Authentication\n\
    \nOur APIs require the following url parameters on every call:\n\n- **broker_id** - your customer\
    \ ID on our systems (provided to you)\n- **user** - a unique ID of the end-user consuming the information.\
    \ For server-to-server\n  integrations this would typically be your company name\n- **account_type**\
    \ - 0 = LIVE, 1 = DEMO\n- **expire** - Unix timestamp of when this token will expire\n- **token**\
    \ - a token generated by MD5(user|[account_type]|[expire][secret_key])\n\nin which *secret_key* is\
    \ the secret key provided to you, not to be shared with the\nend-user.\n\nNote the '|' (pipe) character\
    \ before and after the account_type parameter.\n\n```php\n<?php\n$expire      = time() + (3 * 24 *\
    \ 60 * 60);\n$userId      = \"myuserid\";\n$accountType = \"0\";\n$secretKey   = \"secretkey\";\n\
    $token = md5(\"{$userId}|{$accountType}|{$expire}{$secretKey}\");\necho $token;\n```\n\n```python\n\
    import hashlib\nimport time\n\nexpire = int(time.time()) + (3 * 24 * 60 * 60)\nuser_id = \"myuserid\"\
    \naccount_type = \"0\"\nsecret_key = \"secretkey\"\ntoken = hashlib.md5(\n    f\"{user_id}|{account_type}|{expire}{secret_key}\"\
    .encode(\"utf-8\")\n).hexdigest()\nprint(token)\n```\n"
servers:
- url: https://api.autochartist.com
tags:
- name: Technical Analysis
paths:
  /to/resources/results:
    get:
      tags:
      - Technical Analysis
      summary: Technical trade setups
      description: "Returns latest pattern results for the specified symbol group category.\n\nThis endpoint\
        \ also accepts a `POST` request carrying an optional user-configuration JSON\nbody, used to override\
        \ the stored user configuration for the pattern-results search.\n\nUser configuration is used\
        \ to limit the pattern results search. The pattern search criteria\ninclude the following information:\n\
        \n- patterns\n- pattern results\n- symbols\n- intervals\n- exchanges\n- age - number of candles\n\
        - candles delay - For demo accounts, any pattern result with age less than 5 is excluded\n  from\
        \ the results.\n\n#### Return format\n\n- **Status 200** - application/json - latest pattern results.\n\
        - The JSON object includes the following keys:\n    - **page** - pagination configuration for\
        \ pagination links.\n    - **items** - a list of pattern result items.\n        - **new** - indicate\
        \ whether the data has been updated since the last request if any.\n        - **data** - pattern\
        \ result item - see \"Fields\" below.\n        - **links** - an array of HATEOAS links for chart\
        \ pattern images of different sizes\n          displaying the price graph for the pattern result.\n\
        \n#### Fields\n\nNote that some of the fields below may not be applicable to all analysis types.\n\
        \n- **result_type** - The type of trade setup\n- **result_uid** - Internal unique identification\
        \ numbers\n- **direction** - The direction of the forecast\n- **prediction_price_from** - The\
        \ start of the forecast range\n- **prediction_price_to** - The end of the forecast range\n- **pip**\
        \ - The size of a pip for this instrument\n- **exchange** - The exchange to which this symbol\
        \ belongs\n- **group_name** - The logical group to which this symbol belongs\n- **symbol** - The\
        \ TICKER\n- **symbol_name** - The long name of the symbol\n- **symbol_id** - Internal symbolID\
        \ (ignore)\n- **interval** - The data interval on which this trade setup was identified\n- **pattern**\
        \ - The name of the trade setup. If multiple locales are specified then this\n  field will be\
        \ an array\n- **pattern_list** - If multiple locales are specified then this field will be an\
        \ array of\n  language specific pattern names\n- **complete** - false when this trade setup is\
        \ not yet fully formed. otherwise True.\n- **identified** - Date/Time when this trade setup was\
        \ identified\n- **age** - The age in candles of the trade setup (difference between the current\
        \ date and\n  the identified date, divided by the 'interval')\n- **length** - The number of candles\
        \ forming this trade setup\n- **found** - Internal timestamp. Ignore.\n- **analysis_text** - Text\
        \ that describes the identified trade setup.\n- **analysis_text_list** - If multiple locales are\
        \ specified then this field will be an array\n  of language specific analysis_text\n- **analysis_text_template**\
        \ - Text that describes the identified trade setup but the date\n  portion of the text will be\
        \ replaced by the {identified} identifier. This allows\n  developers to customize the text for\
        \ different timezones. If multiple locales are specified\n  then this field will be an array\n\
        - **expires_at** - A maximum date/time when this setup should be expired\n- **signal_levels**\n\
        \    - **entry_level** - Entry for the signal\n    - **stop_loss** - Stop Loss for the signal\n\
        \    - **target_level** - Target price\n    - **target_period** - Period within which the target\
        \ price could hit\n- **details** - will only be returned if the parameter \"include_detail\" is\
        \ set to true. For\n  information about this field see the section \"Get pattern result details\"\
        \n- **drawing** - will only be returned if the parameter \"include_drawing\" is set to true.\n\
        \n#### Requires authentication\n\nA valid request with an authorized MD5 token will be accepted."
      parameters:
      - name: broker_id
        in: query
        required: true
        description: Your customer ID on our systems (provided to you).
        schema: &id001
          type: integer
        example: 604
      - name: user
        in: query
        required: true
        description: A unique ID of the end-user consuming the information.
        schema: &id002
          type: string
        example: myuserid
      - name: account_type
        in: query
        required: true
        description: 'Account type: `LIVE` or `DEMO` (encoded as 0 = LIVE, 1 = DEMO in the token).'
        schema: &id003
          type: string
        example: LIVE
      - name: expire
        in: query
        required: true
        description: Unix timestamp of when the token will expire.
        schema: &id004
          type: integer
        example: 1691193600
      - name: token
        in: query
        required: true
        description: MD5 token - see 'API Request Authentication'.
        schema: &id005
          type: string
        example: <your-md5-token>
      - name: group
        in: query
        required: false
        description: The symbol group category to search (e.g. `all`).
        schema:
          type: string
        example: all
      - name: locale
        in: query
        required: false
        description: Locale for pattern/analysis text (e.g. `en`).
        schema:
          type: string
        example: en
      - name: locales
        in: query
        required: false
        description: Comma separated locales for multi-language results.
        schema:
          type: string
        example: en,tr,ru
      - name: timezone
        in: query
        required: false
        description: Timezone applied to the returned date/time fields.
        schema:
          type: string
        example: UTC
      - name: include_detail
        in: query
        required: false
        description: Include the pattern `detail` payload for every item.
        schema:
          type: boolean
        example: true
      - name: include_drawing
        in: query
        required: false
        description: Include the pattern `drawing` payload for every item.
        schema:
          type: boolean
        example: true
      - name: page_limit
        in: query
        required: false
        description: Maximum number of items per page.
        schema:
          type: integer
        example: 20
      - name: page_offset
        in: query
        required: false
        description: Zero-based page offset.
        schema:
          type: integer
        example: 0
      - name: since
        in: query
        required: false
        description: Only return results identified since this ISO-8601 timestamp.
        schema:
          type: string
        example: '2022-08-12T00:00:00Z'
      responses:
        '200':
          description: Latest pattern results.
          content:
            application/json:
              examples:
                currencies:
                  summary: Currencies
                  value:
                    date: '2022-08-12T14:34:39.508Z'
                    query:
                      pattern_types:
                      - KeyLevel
                      - Fibonacci
                      - ChartPattern
                      symbols:
                      - NZDUSD
                      - EURGBP
                      - EURJPY
                      - USDCHF
                      - EURCHF
                      - AUDUSD
                      - USDJPY
                      - EURUSD
                      - XAGUSD
                      - XAUUSD
                      - USDCAD
                      - GBPUSD
                      exchanges: []
                      patterns: []
                      intervals:
                      - 240
                      - 480
                      - 1440
                      - 120
                      - 60
                      - 30
                      - 15
                      types:
                      - breakout
                      - approach
                      candles: 0
                      candles_delay: 0
                      page_limit: 1000
                      page_offset: 0
                      relevant_only: true
                      MaxPatternLength: 400
                      require_pips: false
                      use_old_result_uid: false
                    page:
                      number: 1
                      limit: 1000
                      offset: 0
                      total_items: 1
                      total_pages: 1
                      links:
                      - rel: first
                        href: https://api.autochartist.com/to/resources/results?account_type=LIVE&broker_id=604&timezone=UTC&include_detail=true&page_offset=0&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all
                        display: '<<'
                        enabled: false
                      - rel: prev
                        href: https://api.autochartist.com/to/resources/results?account_type=LIVE&broker_id=604&timezone=UTC&include_detail=true&page_offset=0&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all
                        display: <
                        enabled: false
                      - rel: pages[0]
                        href: https://api.autochartist.com/to/resources/results?account_type=LIVE&broker_id=604&timezone=UTC&include_detail=true&page_offset=0&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all
                        display: '1'
                        enabled: false
                        active: true
                      - rel: next
                        href: https://api.autochartist.com/to/resources/results?account_type=LIVE&broker_id=604&timezone=UTC&include_detail=true&page_offset=0&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all
                        display: '>'
                        enabled: false
                      - rel: last
                        href: https://api.autochartist.com/to/resources/results?account_type=LIVE&broker_id=604&timezone=UTC&include_detail=true&page_offset=0&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all
                        display: '>>'
                        enabled: false
                    items:
                    - new: false
                      data:
                        result_type: ChartPattern
                        result_uid: 600419071894599000
                        direction: -1
                        prediction_time_to: '2022-08-13T07:15:00.000Z'
                        prediction_price_from: 132.65
                        prediction_price_to: 133.13
                        pip: 0.01
                        exchange: FOREX
                        group_name: FX Majors
                        symbol: USDJPY
                        symbol_name: USDJPY
                        symbol_id: 525055079641196100
                        interval: 15
                        pattern: Rising Wedge
                        pattern_list:
                        - locale: en
                          text: Rising Wedge
                        - locale: tr
                          text: Yükselen Kama
                        - locale: ru
                          text: Восходящий клин
                        analysis_text_list:
                        - locale: en
                          text: Rising Wedge has broken through the support line at 8/12 14:00. Possible
                            bearish price movement forecast for the next 11 hours towards 133.13.
                        - locale: tr
                          text: Yükselen Kama, 8/12 14:00 ile destek çizgisinden geçti. Sonraki 10 saat
                            ila 133.13 için aşağı yönlü olabilecek fiyat hareketi tahmini.
                        - locale: ru
                          text: Фигура Восходящий клин пробила линию поддержки 8/12 14:00. Возможно падение
                            цены в следующие 11 часов к 133.13.
                        target_period_list:
                        - locale: en
                          text: 11 hours
                        - locale: tr
                          text: 10 saat
                        - locale: ru
                          text: 11 часов
                        complete: true
                        identified: '2022-08-12T14:00:00.000Z'
                        age: 1
                        length: 140
                        found: '2022-08-12T14:11:47.530Z'
                        analysis_text: Rising Wedge has broken through the support line at 8/12 14:00.
                          Possible bearish price movement forecast for the next 11 hours towards 133.13.
                        analysis_text_template:
                        - locale: en
                          text: Rising Wedge has broken through the support line at {identified}. Possible
                            bearish price movement forecast for the next 11 hours towards 133.13.
                        - locale: tr
                          text: Yükselen Kama, {identified} ile destek çizgisinden geçti. Sonraki 10 saat
                            ila 133.13 için aşağı yönlü olabilecek fiyat hareketi tahmini.
                        - locale: ru
                          text: Фигура Восходящий клин пробила линию поддержки {identified}. Возможно
                            падение цены в следующие 11 часов к 133.13.
                        expires_at: '2022-08-13T01:12:18.418Z'
                        detail:
                          resistance_y0: 133.312
                          resistance_y1: 133.893
                          resistance_x0: '2022-08-11T02:45:00.000Z'
                          resistance_x1: '2022-08-12T11:30:00.000Z'
                          support_y0: 131.733
                          support_y1: 133.169
                          support_x0: '2022-08-11T12:30:00.000Z'
                          support_x1: '2022-08-12T08:45:00.000Z'
                          prediction_time_to: '2022-08-13T07:15:00.000Z'
                          trend_change: Reversal
                          quality: 0.43911563619112487
                          volume: 1
                          uniformity: 0.6748240730117049
                          initial_trend: 0.09105749221361932
                          prediction_price_from: 132.64796369254503
                          prediction_price_to: 133.13331820522708
                          clarity: 0.33647844089668744
                          breakout: 0.6541025386424879
                          pattern_start_price: 132.545
                          pattern_end_price: 133.52356790123457
                          stop_loss: 133.893
                          take_profit: 133.13331820522708
                          qty_tp: 5
                          symbol: USDJPY
                          granularity: 15
                          direction: -1
                          length: 140
                          complete: true
                          exchange: FOREX
                          age: 1
                          relevant: 1
                          pattern_id: 64
                          symbol_id: 525055079641196100
                          long_name: USDJPY
                          short_name: USDJPY
                          pattern_end_time: '2022-08-12T13:45:00.000Z'
                          pattern_start_time: '2022-08-11T02:45:00.000Z'
                          pattern_name: Rising Wedge
                          result_uid: 600419071894599000
                          is_new: false
                          prediction_pip_profit: 0
                          forecast_minutes: 699
                          symbol_pip: '0.01'
                        drawing:
                          symbol: USDJPY
                          arrow:
                          - point2Name: null
                            y1: 133.48
                            name: Arrow Line
                            x1: 1660311900
                            y2: 133.13332
                            x2: 1660358700
                            point1Name: null
                          length: 140
                          timeZone: UTC
                          forecast: []
                          timeFrame:
                            from: 1659996900
                            to: 1660500900
                          originalLines:
                          - point2Name: null
                            y1: 133.312
                            name: Resistance original
                            x1: 1660185900
                            y2: 133.893
                            x2: 1660303800
                            point1Name: null
                          - point2Name: null
                            y1: 131.733
                            name: Support original
                            x1: 1660221000
                            y2: 133.169
                            x2: 1660293900
                            point1Name: null
                          eventLine:
                            point2Name: null
                            y1: 129.40825
                            name: Event Line
                            x1: 1660311900
                            y2: 138.04825
                            x2: 1660311900
                            point1Name: null
                          chartType: CHART_PATTERN
                          interval: 15
                          lines:
                          - point2Name: null
                            y1: 133.312
                            name: Resistance
                            x1: 1660185900
                            y2: 133.93292
                            x2: 1660311900
                            point1Name: null
                          - point2Name: null
                            y1: 131.04159
                            name: Support
                            x1: 1660185900
                            y2: 133.52357
                            x2: 1660311900
                            point1Name: null
                          priceRange:
                            low: 131.733
                            to: 133.893
                          direction: BEARISH
                          predictionRectangle:
                          - point2Name: null
                            y1: 132.64796
                            name: Prediction Rectangle - Top Line
                            x1: 1660313700
                            y2: 132.64796
                            x2: 1660374900
                            point1Name: null
                          - point2Name: null
                            y1: 132.64796
                            name: Prediction Rectangle - Right Line
                            x1: 1660374900
                            y2: 133.13332
                            x2: 1660374900
                            point1Name: null
                          - point2Name: null
                            y1: 133.13332
                            name: Prediction Rectangle - Bottom Line
                            x1: 1660374900
                            y2: 133.13332
                            x2: 1660313700
                            point1Name: null
                          - point2Name: null
                            y1: 133.13332
                            name: Prediction Rectangle - Left Line
                            x1: 1660313700
                            y2: 132.64796
                            x2: 1660313700
                            point1Name: null
                          - point2Name: null
                            y1: 132.64796
                            name: Prediction Rectangle
                            x1: 1660313700
                            y2: 133.13332
                            x2: 1660374900
                            point1Name: null
                        symbol_pip: '0.01'
                      links:
                      - rel: detail
                        href: https://api.autochartist.com/to/resources/results/detail/ChartPattern/600419071894599101?locales=en%2Ctr%2Cru&account_type=LIVE&include_drawing=true&broker_id=604&timezone=UTC&page_limit=1000&include_detail=true&locale=en&group=all
                      - rel: drawing-data
                        href: https://api.autochartist.com/to/resources/results/detail/drawing-data/ChartPattern/600419071894599101?account_type=LIVE&timezone=UTC&broker_id=604&locale=en
                      - rel: analysis
                        href: https://api.autochartist.com/to/resources/results/analysis/ChartPattern/600419071894599101?broker_id=604&timezone=UTC&locale=en&locales=en%2Ctr%2Cru&group=all&account_type=LIVE&include_detail=true&include_drawing=true&page_limit=1000
                      - rel: chart-xs
                        href: https://api.autochartist.com/to/resources/charts/ChartPattern_600419071894599101.png?locales=en%2Ctr%2Cru&account_type=LIVE&include_drawing=true&broker_id=604&timezone=UTC&page_limit=1000&include_detail=true&locale=en&group=all&width=240&height=180
                      - rel: chart-sm
                        href: https://api.autochartist.com/to/resources/charts/ChartPattern_600419071894599101.png?locales=en%2Ctr%2Cru&account_type=LIVE&include_drawing=true&broker_id=604&timezone=UTC&page_limit=1000&include_detail=true&locale=en&group=all&width=340&height=240
                      - rel: chart-md
                        href: https://api.autochartist.com/to/resources/charts/ChartPattern_600419071894599101.png?locales=en%2Ctr%2Cru&account_type=LIVE&include_drawing=true&broker_id=604&timezone=UTC&page_limit=1000&include_detail=true&locale=en&group=all&width=360&height=300
                      - rel: chart-lg
                        href: https://api.autochartist.com/to/resources/charts/ChartPattern_600419071894599101.png?locales=en%2Ctr%2Cru&account_type=LIVE&include_drawing=true&broker_id=604&timezone=UTC&page_limit=1000&include_detail=true&locale=en&group=all&width=430&height=300
                      - rel: icon-arrow
                        href: https://api.autochartist.com/to/resources/results/graphics/icons/arrow_complete_down.png?account_type=LIVE&broker_id=604&timezone=UTC&include_detail=true&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&width=16&height=16
                    links:
                    - rel: refresh
                      href: https://api.autochartist.com/to/resources/results?account_type=LIVE&broker_id=604&timezone=UTC&include_detail=true&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all&since=2022-08-12T14%3A34%3A39.508Z
                    - rel: detail_path
                      href: https://api.autochartist.com/to/resources/results
                futures:
                  summary: Futures
                  value:
                    date: '2022-09-15T13:27:31.221Z'
                    query:
                      pattern_types:
                      - KeyLevel
                      - Fibonacci
                      - ChartPattern
                      symbols:
                      - MYM
                      - M2K
                      - ZB
                      - CL
                      - ZC
                      - ES
                      - MNQ
                      - ZL
                      - ZM
                      - ZN
                      - SI
                      - ZS
                      - LE
                      - KE
                      - MES
                      - GC
                      - ZW
                      - HE
                      - GF
                      exchanges: []
                      patterns: []
                      intervals:
                      - 240
                      - 480
                      - 1440
                      - 120
                      - 60
                      - 30
                      - 15
                      types:
                      - breakout
                      - approach
                      candles: 0
                      candles_delay: 0
                      page_limit: 1000
                      page_offset: 0
                      relevant_only: true
                      MaxPatternLength: 400
                      require_pips: false
                      use_old_result_uid: false
                    page:
                      number: 1
                      limit: 1000
                      offset: 0
                      total_items: 1
                      total_pages: 1
                      links:
                      - rel: first
                        href: https://api.autochartist.com/to/resources/results?account_type=LIVE&timezone=UTC&broker_id=603&include_detail=true&page_offset=0&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all
                        display: '<<'
                        enabled: false
                      - rel: prev
                        href: https://api.autochartist.com/to/resources/results?account_type=LIVE&timezone=UTC&broker_id=603&include_detail=true&page_offset=0&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all
                        display: <
                        enabled: false
                      - rel: pages[0]
                        href: https://api.autochartist.com/to/resources/results?account_type=LIVE&timezone=UTC&broker_id=603&include_detail=true&page_offset=0&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all
                        display: '1'
                        enabled: false
                        active: true
                      - rel: next
                        href: https://api.autochartist.com/to/resources/results?account_type=LIVE&timezone=UTC&broker_id=603&include_detail=true&page_offset=0&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all
                        display: '>'
                        enabled: false
                      - rel: last
                        href: https://api.autochartist.com/to/resources/results?account_type=LIVE&timezone=UTC&broker_id=603&include_detail=true&page_offset=0&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all
                        display: '>>'
                        enabled: false
                    items:
                    - new: false
                      data:
                        result_type: KeyLevel
                        result_uid: 600611332686869100
                        direction: 1
                        prediction_price_from: 0
                        prediction_price_to: 0
                        pip: 0
                        exchange: CBOT-GBX
                        group_name: Futures
                        symbol: MYM
                        symbol_name: Micro E-mini Dow Jones Industrial Average Index Futures
                        symbol_id: 525055066243433100
                        interval: 15
                        pattern: Resistance
                        pattern_list:
                        - locale: en
                          text: Resistance
                        - locale: tr
                          text: Direnç
                        - locale: ru
                          text: Сопротивление
                        analysis_text_list:
                        - locale: en
                          text: Approaching Resistance level of 31,339.0000 identified at 9/15 12:45.
                            This pattern is still in the process of forming. Possible bullish price movement
                            towards the resistance 31,339.0000 within the next 3 hours.
                        - locale: tr
                          text: 31,339.0000 de tanımlanan Direnç seviye Yaklaşıyor 9/15 12:45. Bu formasyon,
                            hala oluşturuluyor. Sonraki 31,339.0000 içerisinde 3 saat direncine doğru
                            yukarı yönlü olabilecek fiyat hareketi.
                        - locale: ru
                          text: Приближается к уровню Сопротивление  31,339.0000 идентифицированному 9/15
                            12:45. Эта фигура еще находится в процессе формирования.  Возможен рост цены
                            к сопротивлению 3 часов в течение следующих 31,339.0000.
                        target_period_list:
                        - locale: en
                          text: 3 hours
                        - locale: tr
                          text: 3 saat
                        - locale: ru
                          text: 3 часов
                        complete: false
                        identified: '2022-09-15T12:45:00.000Z'
                        age: 1
                        length: 73
                        found: '2022-09-15T13:09:02.040Z'
                        analysis_text: Approaching Resistance level of 31,339.0000 identified at 9/15
                          12:45. This pattern is still in the process of forming. Possible bullish price
                          movement towards the resistance 31,339.0000 within the next 3 hours.
                        analysis_text_template:
                        - locale: en
                          text: Approaching Resistance level of 31,339.0000 identified at {identified}.
                            This pattern is still in the process of forming. Possible bullish price movement
                            towards the resistance 31,339.0000 within the next 3 hours.
                        - locale: tr
                          text: 31,339.0000 de tanımlanan Direnç seviye Yaklaşıyor {identified}. Bu formasyon,
                            hala oluşturuluyor. Sonraki 31,339.0000 içerisinde 3 saat direncine doğru
                            yukarı yönlü olabilecek fiyat hareketi.
                        - locale: ru
                          text: Приближается к уровню Сопротивление  31,339.0000 идентифицированному {identified}.
                            Эта фигура еще находится в процессе формирования.  Возможен рост цены к сопротивлению
                            3 часов в течение следующих 31,339.0000.
                        expires_at: '2022-09-15T16:27:31.227Z'
                        detail:
                          bandwidth: 2
                          atBarIdentified: '2022-09-15T12:30:00.000Z'
                          x0: '2022-09-15T02:00:00.000Z'
                          x1: '2022-09-14T22:45:00.000Z'
                          x2: '2022-09-14T20:45:00.000Z'
                          x3: '2022-09-14T17:00:00.000Z'
                          x4: '1970-01-01T00:00:00.000Z'
                          x5: '1970-01-01T00:00:00.000Z'
                          x6: '1970-01-01T00:00:00.000Z'
                          x7: '1970-01-01T00:00:00.000Z'
                          x8: '1970-01-01T00:00:00.000Z'
                          x9: '1970-01-01T00:00:00.000Z'
                          approachingTime: '2022-09-15T12:30:00.000Z'
                          patternPrice: 31339
                          approachingRegion: 78
                          errorMargin: 17.95
                          qtyTP: 4
                          priceE: 31355.75
                          barsE: 80
                          temporaryPattern: false
                          predictionPriceFrom: 0
                          predictionPriceTo: 0
                          predictionTimeFrom: '1900-01-01T05:00:00.000Z'
                          predictionTimeBars: 0
                          furthestPrice: 31231.36
                          atPriceIdentified: 31282
                          symbol: MYM
                          granularity: 15
                          direction: 1
                          length: 73
                          complete: false
                          exchange: CBOT-GBX
                          age: 1
                          relevant: 1
                          pattern_id: 1
                          symbol_id: 525055066243433100
                          long_name: Micro E-mini Dow Jones Industrial Average Index Futures
                          pattern_end_time: '2022-09-15T12:30:00.000Z'
                          pattern_start_time: '2022-09-14T17:00:00.000Z'
                          pattern_name: Resistance
                          result_uid: 600611332686869100
                          is_new: false
                          prediction_pip_profit: 0
                          forecast_minutes: 273
                        drawing:
                          symbol: MYM
                          arrow:
                          - point2Name: null
                            y1: 31282
                            name: Arrow Line
                            x1: 1663245000
                            y2: 31339
                            x2: 1663250400
                            point1Name: null
                          length: 73
                          timeZone: America/New_York
                          forecast:
                          - point2Name: null
                            y1: 31339
                            name: Key Level Forecast Line
                            x1: 1663245000
                            y2: 31339
                            x2: 1663268400
                            point1Name: null
                          timeFrame:
                            from: 1663168140
                            to: 1663275960
                          originalLines: []
                          eventLine:
                            point2Name: null
                            y1: 30633
                            name: Event Line
                            x1: 1663245000
                            y2: 32045
                            x2: 1663245000
                            point1Name: null
                          chartType: KEY_LEVEL
                          interval: 15
                          lines:
                          - point2Name: null
                            y1: 31339
                            name: Key Level Line
                            x1: 1663174800
                            y2: 31339
                            x2: 1663245000
                            point1Name: null
                          priceRange:
                            low: 30989
                            to: 31342
                          direction: BULLISH
                          predictionRectangle: []
                      links:
                      - rel: detail
                        href: https://api.autochartist.com/to/resources/results/detail/KeyLevel/600611332686869103?locales=en%2Ctr%2Cru&account_type=LIVE&include_drawing=true&timezone=UTC&page_limit=1000&broker_id=603&include_detail=true&locale=en&group=all
                      - rel: drawing-data
                        href: https://api.autochartist.com/to/resources/results/detail/drawing-data/KeyLevel/600611332686869103?account_type=LIVE&timezone=UTC&broker_id=603&locale=en
                      - rel: analysis
                        href: https://api.autochartist.com/to/resources/results/analysis/KeyLevel/600611332686869103?timezone=UTC&locale=en&locales=en%2Ctr%2Cru&group=all&account_type=LIVE&include_detail=true&include_drawing=true&page_limit=1000&broker_id=603
                      - rel: chart-xs
                        href: https://api.autochartist.com/to/resources/charts/KeyLevel_600611332686869103.png?locales=en%2Ctr%2Cru&account_type=LIVE&include_drawing=true&timezone=UTC&page_limit=1000&broker_id=603&include_detail=true&locale=en&group=all&width=240&height=180
                      - rel: chart-sm
                        href: https://api.autochartist.com/to/resources/charts/KeyLevel_600611332686869103.png?locales=en%2Ctr%2Cru&account_type=LIVE&include_drawing=true&timezone=UTC&page_limit=1000&broker_id=603&include_detail=true&locale=en&group=all&width=340&height=240
                      - rel: chart-md
                        href: https://api.autochartist.com/to/resources/charts/KeyLevel_600611332686869103.png?locales=en%2Ctr%2Cru&account_type=LIVE&include_drawing=true&timezone=UTC&page_limit=1000&broker_id=603&include_detail=true&locale=en&group=all&width=360&height=300
                      - rel: chart-lg
                        href: https://api.autochartist.com/to/resources/charts/KeyLevel_600611332686869103.png?locales=en%2Ctr%2Cru&account_type=LIVE&include_drawing=true&timezone=UTC&page_limit=1000&broker_id=603&include_detail=true&locale=en&group=all&width=430&height=300
                      - rel: icon-arrow
                        href: https://api.autochartist.com/to/resources/results/graphics/icons/arrow_approach_up.png?account_type=LIVE&timezone=UTC&broker_id=603&include_detail=true&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&width=16&height=16
                    links:
                    - rel: refresh
                      href: https://api.autochartist.com/to/resources/results?account_type=LIVE&timezone=UTC&broker_id=603&include_detail=true&locale=en&locales=en%2Ctr%2Cru&include_drawing=true&page_limit=1000&group=all&since=2022-09-15T13%3A27%3A31.221Z
                    - rel: detail_path
                      href: https://api.autochartist.com/to/resources/results
      x-codeSamples:
      - lang: PHP
        label: PHP
        source: "<?php\n$params = http_build_query([\n    \"broker_id\"       => 604,\n    \"user\"  \
          \          => \"myuserid\",\n    \"account_type\"    => \"LIVE\",\n    \"expire\"          =>\
          \ 1691193600,\n    \"token\"           => $token,          // see \"API Request Authentication\"\
          \n    \"group\"           => \"all\",\n    \"locale\"          => \"en\",\n    \"include_detail\"\
          \  => \"true\",\n    \"include_drawing\" => \"true\",\n    \"page_limit\"      => 20,\n    \"\
          page_offset\"     => 0,\n]);\n$url = \"https://api.autochartist.com/to/resources/results?\"\
          \ . $params;\n$results = json_decode(file_get_contents($url), true);\nprint_r($results);\n"
      - lang: Python
        label: Python
        source: "import requests\n\nparams = {\n    \"broker_id\": 604,\n    \"user\": \"myuserid\",\n\
          \    \"account_type\": \"LIVE\",\n    \"expire\": 1691193600,\n    \"token\": token,  # see\
          \ \"API Request Authentication\"\n    \"group\": \"all\",\n    \"locale\": \"en\",\n    \"include_detail\"\
          : \"true\",\n    \"include_drawing\": \"true\",\n    \"page_limit\": 20,\n    \"page_offset\"\
          : 0,\n}\nresp = requests.get(\"https://api.autochartist.com/to/resources/results\", params=params)\n\
          results = resp.json()\nprint(results)\n"
  /to/resources/results/detail/{type}/{uid}:
    get:
      tags:
      - Technical Analysis
      summary: Get pattern result details
      description: "Returns details of a pattern result item.\n\n#### Return format\n\n- **Status 200**\
        \ - application/json - the pattern result item.\n- The JSON object includes the following keys:\n\
        \    - **new** - indicate whether the data has been updated since the last request if any.\n \
        \   - **data** - pattern result item. See \"Fields\" below.\n    - **links** - an array of HATEOAS\
        \ links for chart pattern images of different sizes\n      displaying the price graph for the\
        \ pattern result.\n\n#### Fields\n\nBelow are the return fields. There are fields that are common\
        \ to all analysis types, and\nsome fields that are specific to each analysis type.\n\n##### Common\
        \ fields\n\n- **symbol** - The TICKER on which this trade setup was identified\n- **exchange**\
        \ - The exchange to which this instrument belongs\n- **short_name** - The short name of the symbol\n\
        - **long_name** - The long name of the symbols\n- **age** - The age (in candles) of the trade\
        \ setup\n- **complete** - Is this trade fully formed or still in the process of forming.\n- **direction**\
        \ - Direction of forecast\n- **granularity** - Data interval on which this setup was identified\n\
        - **forecast_minutes** - The forecast in minutes\n- **is_new** - Is this a new setup since the\
        \ last call to the API\n- **length** - the length of this trade setup in candles\n- **pattern_start_time**\
        \ - The first candle in this trade setup\n- **pattern_end_time** - The last candle in this trade\
        \ setup. Ignore if complete == false.\n- **pattern_name** - The name of the pattern that was identified\n\
        - **relevant** - 1 = this trade setup is still relevant. 0 = trade expired\n- **result_uid** -\
        \ unique identifier of a result\n\n##### Fields specific to Chart Patterns\n\n- **breakout** -\
        \ strength (between 0 and 1) of the breakout. -1 == no breakout yet\n- **clarity** - clarity of\
        \ this pattern (between 0 and 1)\n- **initial_trend** - strength (between 0 and 1) of the initial\
        \ trend\n- **quality** - overall pattern quality (between 0 and 1)\n- **uniformity** - uniformity\
        \ (between 0 and 1) of the pattern\n- **volume** - strength (between 0 and 1) of the volume increase\
        \ at point of breakout. Not\n  applicable when breakout == -1\n- **trend_change** - Continuation\
        \ / Reversal\n- **qty_tp** - quantity of turning points that make up this pattern\n- **prediction_price_from**\
        \ - the start of the forecast area\n- **prediction_price_to** - the end of the forecast area\n\
        - **prediction_time_to** - the date/time when this pattern expires\n- **resistance_x0 / resistance_x1**\
        \ - the x (date) coordinates of the resistance line\n- **resistance_y0 / resistance_y1** - the\
        \ y (price) coordinates of the resistance line\n- **support_x0 / support_x1** - the x (date) coordinates\
        \ of the support line\n- **support_y0 / support_y1** - the y (price) coordinates of the support\
        \ line\n\n##### Fields specific to Fibonacci Patterns\n\n- **averageQuality** - The overall visual\
        \ quality of the pattern\n- **priceA / priceB / priceC / priceD / priceX** - Price of points A-D\
        \ and X (-1 if not\n  applicable for this Fibonacci setup)\n- **timeA / timeB / timeC / timeD\
        \ / timeX** - Date/time of points A-D and X. If year <= 1900\n  then ignore\n- **ratioQuality**\
        \ - quality of the ratios of lines. Close to 1 means the proportions of the\n  pattern are reaching\
        \ the ideal\n- **target03 ... target16** - the successive Fibonacci targets of the pattern\n\n\
        ##### Fields specific to Key Levels\n\n- **patternPrice** - the price of the key level\n- **approachingRegion**\
        \ - Price at which the opportunity was found to be approaching the key\n  level. Applicable to\
        \ emerging patterns only.\n- **approachingTime** - date/time when the pattern was deemed to be\
        \ approaching.\n- **atBarIdentified** - the candle on which this pattern was found\n- **atPriceIdentified**\
        \ - the price at which this pattern was identified\n- **furthestPrice** - the price that was furthest\
        \ away from the key level\n- **predictionPriceFrom** - the start of the prediction area\n- **predictionPriceTo**\
        \ - the end of the prediction area\n- **predictionTimeFrom** - the start of the forecast period\n\
        - **predictionTimeBars** - the length (in candles) of the forecast\n- **x0 ... x9** - the date/time\
        \ of the successive touch points of the price graph.\n  1970-01-01 = ignore\n\n##### Fields specific\
        \ to Japanese Candlesticks\n\n- [None]\n\n#### Requires authentication\n\nA valid request with\
        \ an authorized MD5 token will be accepted."
      parameters:
      - name: type
        in: path
        required: true
        description: The pattern result type (e.g. `KeyLevel`, `ChartPattern`, `Fibonacci`).
        schema:
          type: string
        example: KeyLevel
      - name: uid
        in: path
        required: true
        description: The unique identifier of the pattern result.
        schema:
          type: integer
          format: int64
        example: 600419182744698103
      - name: broker_id
        in: query
        required: true
        description: Your customer ID on our systems (provided to you).
        schema: *id001
        example: 604
      - name: user
        in: query
        required: true
        description: A unique ID of the end-user consuming the information.
        schema: *id002
        example: myuserid
      - name: account_type
        in: query
        required: true
        description: 'Account type: `LIVE` or `DEMO` (encoded as 0 = LIVE, 1 = DEMO in the token).'
        schema: *id003
        example: LIVE
      - name: expire
        in: query
        required: true
        description: Unix timestamp of when the token will expire.
        schema: *id004
        example: 1691193600
      - name: token
        in: query
        required: true
        description: MD5 token - see 'API Request Authentication'.
        schema: *id005
        example: <your-md5-token>
      responses:
        '200':
          description: The pattern result item.
          content:
            application/json:
              examples:
                key_level:
                  summary: Key Level
                  value:
                    new: false
                    data:
                      bandwidth: 7
                      atBarIdentified: '2022-08-12T14:15:00.000Z'
                      x0: '2022-08-12T07:00:00.000Z'
                      x1: '2022-08-12T02:15:00.000Z'
                      x2: '2022-08-12T00:45:00.000Z'
                      x3: '2022-08-11T18:30:00.000Z'
                      x4: '2022-08-10T23:30:00.000Z'
                      x5: '1970-01-01T00:00:00.000Z'
                      x6: '1970-01-01T00:00:00.000Z'
                      x7: '1970-01-01T00:00:00.000Z'
                      x8: '1970-01-01T00:00:00.000Z'
                      x9: '1970-01-01T00:00:00.000Z'
                      approachingTime: '1970-01-01T00:00:00.000Z'
                      patternPrice: 0.9426900148391724
                      approachingRegion: 0
                      errorMargin: 0.000366
                      qtyTP: 5
                      priceE: 0.9430559873580933
                      barsE: 378
                      temporaryPattern: false
                      predictionPriceFrom: 0.9457160234451294
                      predictionPriceTo: 0.9493759870529175
                      predictionTimeFrom: '2022-08-12T14:15:00.000Z'
                      predictionTimeBars: 378
                      furthestPrice: 0.9414066
                      atPriceIdentified: 0.94352
                      symbol: USDCHF
                      granularity: 15
                      direction: 1
                      length: 155
                      complete: true
                      exchange: FOREX
                      age: 0
                      pattern_id: 1
                      symbol_id: 525055079706445100
                      long_name: USDCHF
                      pattern_end_time: '2022-08-12T14:15:00.000Z'
                      pattern_start_time: '2022-08-10T23:30:00.000Z'
                      pattern_name: Resistance
                      result_uid: 600419182744698100
                      is_new: false
                      prediction_pip_profit: 0
                      forecast_minutes: 581
                      symbol_pip: '0.0001'
                    links:
                    - rel: chart-xs
                      href: https://api.autochartist.com/to/resources/charts/KeyLevel_600419182744698103.png?account_type=LIVE&broker_id=604&width=240&height=180
                    - rel: chart-sm
                      href: https://api.autochartist.com/to/resources/charts/KeyLevel_600419182744698103.png?account_type=LIVE&broker_id=604&width=340&height=240
                    - rel: chart-md
                      href: https://api.autochartist.com/to/resources/charts/KeyLevel_600419182744698103.png?account_type=LIVE&broker_id=604&width=360&height=300
                    - rel: chart-lg
                      href: https://api.autochartist.com/to/resources/charts/KeyLevel_600419182744698103.png?account_type=LIVE&broker_id=604&width=430&height=300
                    - rel: drawing-data
                      href: https://api.autochartist.com/to/resources/results/detail/drawing-data/KeyLevel/600419182744698103?account_type=LIVE&broker_id=604
                chart_pattern:
                  summary: Chart Pattern
                  value:
                    new: false
                    data:
                      resistance_y0: 133.312
                      resistance_y1: 133.893
                      resistance_x0: '2022-08-11T02:45:00.000Z'
                      resistance_x1: '2022-08-12T11:30:00.000Z'
                      support_y0: 131.733
                      support_y1: 133.169
                      support_x0: '2022-08-11T12:30:00.000Z'
                      support_x1: '2022-08-12T08:45:00.000Z'
                      prediction_time_to: '2022-08-13T07:15:00.000Z'
                      trend_change: Reversal
                      quality: 0.43911563619112487
                      volume: 1
                      uniformity: 0.6748240730117049
                      initial_trend: 0.09105749221361932
                      prediction_price_from: 132.64796369254503
                      prediction_price_to: 133.13331820522708
                      clarity: 0.33647844089668744
                      breakout: 0.6541025386424879
                      pattern_start_price: 132.545
                      pattern_end_price: 133.52356790123457
                      qty_tp: 5
                      symbol: USDJPY
                      granularity: 15
                      direction: -1
                      length: 140
                      complete: true
                      exchange: FOREX
                      age: 2
                      pattern_id: 64
                      symbol_id: 525055079641196100
                      long_name: USDJPY
                      short_name: USDJPY
                      pattern_end_time: '2022-08-12T13:45:00.000Z'
                      pattern_start_time: '2022-08-11T02:45:00.000Z'
                      pattern_name: Rising Wedge
                      result_uid: 600419071894599000
                      is_new: false
                      prediction_pip_profit: 0
                      forecast_minutes: 699
                      symbol_pip: '0.01'
                    links:
                    - rel: chart-xs
                      href: https://api.autochartist.com/to/resources/charts/ChartPattern_600419071894599101.png?account_type=LIVE&broker_id=604&width=240&height=180
                    - rel: chart-sm
                      href: https://api.autochartist.com/to/resources/charts/ChartPattern_600419071894599101.png?account_type=LIVE&broker_id=604&width=340&height=240
                    - rel: chart-md
                      href: https://api.autochartist.com/to/resources/charts/ChartPattern_600419071894599101.png?account_type=LIVE&broker_id=604&width=360&height=300
                    - rel: chart-lg
                      href: https://api.autochartist.com/to/resources/charts/ChartPattern_600419071894599101.png?account_type=LIVE&broker_id=604&width=430&height=300
                    - rel: drawing-data
                      href: https://api.autochartist.com/to/resources/results/detail/drawing-data/ChartPattern/600419071894599101?account_type=LIVE&broker_id=604
                fibonacci:
                  summary: Fibonacci
                  value:
                    new: false
                    data:
                      bandwidth: 2
                      patternStartPrice: 0.70629
                      patternEndPrice: -1
                      qtyTP: 4
                      priceX: -1
                      timeX: '1899-12-29T00:00:00.000Z'
                      priceA: 0.713670015335083
                      timeA: '2022-08-11T13:00:00.000Z'
                      priceB: 0.7089300155639648
                      timeB: '2022-08-12T01:00:00.000Z'
                      priceC: 0.7128099799156189
                      timeC: '2022-08-12T07:00:00.000Z'
                      priceD: 0.7080699801445007
                      timeD: '1899-12-29T00:00:00.000Z'
                      averageQuality: 0.8001984357833862
                      timeQuality: -1
                      ratioQuality: -2.6602353973707293
                      clarity: 0.6003968253968148
                      temporaryPattern: false
                      target10: 0.7128099799156189
                      target16: 0.7157394886016846
                      target06: 0.7109994888305664
                      target12: 0.7140993475914001
                      target07: 0.7117963433265686
                      target03: 0.709880530834198
                      target05: 0.7104399800300598
                      priceAdjustment: 0
                      instrumentId: 0
                      symbol: AUDUSD
                      granularity: 60
                      direction: 1
                      length: 30
                      complete: false
                      exchange: FOREX
                      age: 4
                      pattern_id: 4
                      symbol_id: 525055079628588100
                      long_name: AUDUSD
                      short_name: AUDUSD
                      pattern_end_time: '2022-08-12T09:00:00.000Z'
                      pattern_start_time: '2022-08-11T02:00:00.000Z'
                      result_uid: 600418113757437000
                      is_new: true
                      prediction_pip_profit: 0
                      forecast_minutes: 599
                      symbol_pip: '0.0001'
                    links:
                    - rel: chart-xs
                      href: https://api.autochartist.com/to/resources/charts/Fibonacci_600418113757437102.png?account_type=LIVE&broker_id=604&width=240&height=180
                    - rel: chart-sm
                      href: https://api.autochartist.com/to/resources/charts/Fibonacci_600418113757437102.png?account_type=LIVE&broker_id=604&width=340&height=240
                    - rel: chart-md
                      href: https://api.autochartist.com/to/resources/charts/Fibonacci_600418113757437102.png?account_type=LIVE&broker_id=604&width=360&height=300
                    - rel: chart-lg
                      href: https://api.autochartist.com/to/resources/charts/Fibonacci_600418113757437102.png?account_type=LIVE&broker_id=604&width=430&height=300
                    - rel: drawing-data
                      href: https://api.autochartist.com/to/resources/results/detail/drawing-data/Fibonacci/600418113757437102?account_type=LIVE&broker_id=604
      x-codeSamples:
      - lang: PHP
        label: PHP
        source: "<?php\n$type = \"KeyLevel\";\n$uid  = \"600419182744698103\";\n$params = http_build_query([\n\
          \    \"broker_id\"    => 604,\n    \"user\"         => \"myuserid\",\n    \"account_type\" =>\
          \ \"LIVE\",\n    \"expire\"       => 1691193600,\n    \"token\"        => $token,          //\
          \ see \"API Request Authentication\"\n]);\n$url = \"https://api.autochartist.com/to/resources/results/detail/{$type}/{$uid}?\"\
          \ . $params;\nprint_r(json_decode(file_get_contents($url), true));\n"
      - lang: Python
        label: Python
        source: "import requests\n\nresult_type = \"KeyLevel\"\nuid = \"600419182744698103\"\nparams =\
          \ {\n    \"broker_id\": 604,\n    \"user\": \"myuserid\",\n    \"account_type\": \"LIVE\",\n\
          \    \"expire\": 1691193600,\n    \"token\": token,  # see \"API Request Authentication\"\n\
          }\nresp = requests.get(\n    f\"https://api.autochartist.com/to/resources/results/detail/{result_type}/{uid}\"\
          ,\n    params=params,\n)\nprint(resp.json())\n"
  /to/resources/results/detail/drawing-data/{type}/{uid}:
    get:
      tags:
      - Technical Analysis
      summary: Get pattern result drawing data
      description: "Returns details of a pattern result item.\n\n#### Return format\n\n- **Status 200**\
        \ - application/json - latest pattern results.\n\n- The JSON object includes the following keys:\n\
        \   - **page** - pagination configuration for pagination links.\n   - **items** - a list of pattern\
        \ result items.\n      - **new** - indicate whether the data has been updated since the last request\
        \ if any.\n      - **data** - pattern result item. See \"Fields\" below.\n      - **links** -\
        \ an array of HATEOAS links for chart pattern images of different sizes displaying the price graph\
        \ for the pattern result.\n\n#### Fields\nBelow are the return fields. There are fields that are\
        \ common to all analysis types, and some fields that are specific to each analysis type.\n\n#####\
        \ Common fields\n- **timeZone** - Timezone of the timestamps in the resultset\n- **symbol** -\
        \  The TICKER\n- **chartType** - The type (for example Chart Pattern)\n- **interval** - Data interval\
        \ on which this setup was identified\n- **length** - the length of this trade setup in candles\n\
        - **direction** -  Direction of forecast\n- **priceRange** - the range of prices in this chart\n\
        \   - **low** - the lowest price\n   - **to** - the highest price\n- **timeFrame** - the time\
        \ frame this trade setup spans\n   - **from** - the first date in the range\n   - **to** - the\
        \ last date in the range\n- **originalLines** - Internal. Ignore.\n- **lines** - an array of lines\
        \ that need to be drawn\n   - **x1** - timestamp of first point\n   - **y1** - price of first\
        \ point\n   - **x2** - timestamp of second point\n   - **y2** - price of second point\n   - **name**\
        \ - logical name of this line (if applicable to this trade setup)\n   - **point1Name** - logical\
        \ name of first point (if applicable to this trade setup)\n   - **point2Name** - logical name\
        \ of second point (if applicable to this trade setup)\n- **forecast** - an array of lines that\
        \ need to be drawn to represent the forecast\n   - **x1** - timestamp of first point\n   - **y1**\
        \ - price of first point\n   - **x2** - timestamp of second point\n   - **y2** - price of second\
        \ point\n   - **name** - logical name of this line (if applicable to this trade setup)\n   - **point1Name**\
        \ - logical name of first point (if applicable to this trade setup)\n   - **point2Name** - logical\
        \ name of second point (if applicable to this trade setup)\n- **eventLine** - a vertical line\
        \ representing the time of the event\n   - **x1** - timestamp of first point\n   - **y1** - price\
        \ of first point\n   - **x2** - timestamp of second point\n   - **y2** - price of second point\n\
        \   - **name** - logical name of this line (if applicable to this trade setup)\n   - **point1Name**\
        \ - logical name of first point (if applicable to this trade setup)\n   - **point2Name** - logical\
        \ name of second point (if applicable to this trade setup)\n- **arrow** - an array of lines that\
        \ represent arrows that show the forecast direction\n   - **x1** - timestamp of first point\n\
        \   - **y1** - price of first point\n   - **x2** - timestamp of second point\n   - **y2** - price\
        \ of second point\n   - **name** - logical name of this line (if applicable to this trade setup)\n\
        \   - **point1Name** - logical name of first point (if applicable to this trade setup)\n   - **point2Name**\
        \ - logical name of second point (if applicable to this trade setup)\n- **predictionRectangle**\
        \ - an array of lines that represent the forecast region\n   - **x1** - timestamp of first point\n\
        \   - **y1** - price of first point\n   - **x2** - timestamp of second point\n   - **y2** - price\
        \ of second point\n   - **name** - logical name of this line (if applicable to this trade setup)\n\
        \   - **point1Name** - logical name of first point (if applicable to this trade setup)\n   - **point2Name**\
        \ - logical name of second point (if applicable to this trade setup)\n\n\n#### Requires authentication\n\
        A valid request with an authorized MD5 token will be accepted."
      parameters:
      - name: type
        in: path
        required: true
        description: The pattern result type (e.g. `KeyLevel`, `ChartPattern`, `Fibonacci`).
        schema:
          type: string
        example: KeyLevel
      - name: uid
        in: path
        required: true
        description: The unique identifier of the pattern result.
        schema:
          type: integer
          format: int64
        example: 600419182744698103
      - name: broker_id
        in: query
        required: true
        description: Your customer ID on our systems (provided to you).
        schema: *id001
        example: 604
      - name: user
        in: query
        required: true
        description: A unique ID of the end-user consuming the information.
        schema: *id002
        example: myuserid
      - name: account_type
        in: query
        required: true
        description: 'Account type: `LIVE` or `DEMO` (encoded as 0 = LIVE, 1 = DEMO in the token).'
        schema: *id003
        example: LIVE
      - name: expire
        in: query
        required: true
        description: Unix timestamp of when the token will expire.
        schema: *id004
        example: 1691193600
      - name: token
        in: query
        required: true
        description: MD5 token - see 'API Request Authentication'.
        schema: *id005
        example: <your-md5-token>
      responses:
        '200':
          description: The pattern result drawing data.
          content:
            application/json:
              examples:
                key_level:
                  summary: Key Level
                  value:
                    chartType: KEY_LEVEL
                    interval: 60
                    length: 139
                    direction: BEARISH
                    priceRange:
                      low: 1.936
                      to: 1.9565
                    timeFrame:
                      from: 1631743200
                      to: 1632416400
                    originalLines: []
                    lines:
                    - x1: 1631743200
                      x2: 1632416400
                      y1: 1.9392
                      y2: 1.9392
                      name: Key Level Line
                      point1Name: null
                      point2Name: null
                    forecast:
                    - x1: 1632416400
                      x2: 1632870000
                      y1: 1.9392
                      y2: 1.9392
                      name: Forecast
                      point1Name: null
                      point2Name: null
                    eventLine:
                      x1: 1632416400
                      x2: 1632416400
                      y1: 1.8982
                      y2: 1.9802
                      name: Event Line
                      point1Name: null
                      point2Name: null
                    arrow:
                    - x1: 1632416400
                      x2: 1632567600
                      y1: 1.9381
                      y2: 1.93318
                      name: Arrow Line
                      point1Name: null
                      point2Name: null
                    predictionRectangle:
                    - x1: 1632416400
                      x2: 1632715200
                      y1: 1.92498
                      y2: 1.92498
                      name: Prediction Rectangle - Top Line
                      point1Name: null
                      point2Name: null
                    - x1: 1632715200
                      x2: 1632715200
                      y1: 1.92498
                      y2: 1.93318
                      name: Prediction Rectangle - Right Line
                      point1Name: null
                      point2Name: null
                    - x1: 1632715200
                      x2: 1632416400
                      y1: 1.93318
                      y2: 1.93318
                      name: Prediction Rectangle - Bottom Line
                      point1Name: null
                      point2Name: null
                    - x1: 1632416400
                      x2: 1632416400
                      y1: 1.93318
                      y2: 1.92498
                      name: Prediction Rectangle - Left Line
                      point1Name: null
                      point2Name: null
                    timeZone: America/New_York
                    symbol: GBPNZD
                chart_pattern:
                  summary: Chart Pattern
                  value:
                    chartType: CHART_PATTERN
                    interval: 30
                    length: 19
                    direction: BEARISH
                    priceRange:
                      low: 0.9214
                      to: 0.92567
                    timeFrame:
                      from: 1632384000
                      to: 1632418200
                    originalLines:
                    - x1: 1632394800
                      x2: 1632412800
                      y1: 0.92547
                      y2: 0.92484
                      name: Resistance original
                      point1Name: null
                      point2Name: null
                    - x1: 1632384000
                      x2: 1632405600
                      y1: 0.9227
                      y2: 0.9214
                      name: Support original
                      point1Name: null
                      point2Name: null
                    lines:
                    - x1: 1632384000
                      x2: 1632416400
                      y1: 0.92598
                      y2: 0.9246
                      name: Resistance
                      point1Name: null
                      point2Name: null
                    - x1: 1632384000
                      x2: 1632416400
                      y1: 0.9227
                      y2: 0.92082
                      name: Support
                      point1Name: null
                      point2Name: null
                    forecast:
                    - x1: 1632416400
                      x2: 1632430800
                      y1: 0.9246
                      y2: 0.92391
                      name: Resistance Forecast
                      point1Name: null
                      point2Name: null
                    - x1: 1632416400
                      x2: 1632430800
                      y1: 0.92082
                      y2: 0.91988
                      name: Support Forecast
                      point1Name: null
                      point2Name: null
                    eventLine:
                      x1: 1632416400
                      x2: 1632416400
                      y1: 0.91417
                      y2: 0.93125
                      name: Event Line
                      point1Name: null
                      point2Name: null
                    arrow:
                    - x1: 1632416400
                      x2: 1632423600
                      y1: 0.92261
                      y2: 0.92023
                      name: Arrow Line
                      point1Name: null
                      point2Name: null
                    predictionRectangle: []
                    timeZone: America/New_York
                    symbol: USDCHF
                fibonacci_pattern:
                  summary: Fibonacci Pattern
                  value:
                    chartType: FIBONACCI_PATTERN
                    interval: 15
                    length: 23
                    direction: BEARISH
                    priceRange:
                      low: 1.4821
                      to: 1.48762
                    timeFrame:
                      from: 1632403800
                      to: 1632417300
                    originalLines: []
                    lines:
                    - x1: 1632403800
                      x2: 1632411000
                      y1: 1.4821
                      y2: 1.48762
                      name: A-B
                      point1Name: A
                      point2Name: B
                    - x1: 1632403800
                      x2: 1632411000
                      y1: 1.4821
                      y2: 1.48762
                      name: A-B
                      point1Name: A
                      point2Name: B
                    - x1: 1632411000
                      x2: 1632417300
                      y1: 1.48762
                      y2: 1.4843
                      name: B-C
                      point1Name: B
                      point2Name: C
                    - x1: 1632417300
                      x2: 1632424500
                      y1: 1.4843
                      y2: 1.48982
                      name: EMERGING
                      point1Name: null
                      point2Name: D
                    forecast: null
                    eventLine:
                      x1: 1632417300
                      x2: 1632417300
                      y1: 1.47382
                      y2: 1.4959
                      name: Event Line
                      point1Name: null
                      point2Name: null
                    arrow:
                    - x1: 1632424500
                      x2: 1632428550
                      y1: 1.48982
                      y2: 1.48771
                      name: ARROW
                      point1Name: null
                      point2Name: null
                    predictionRectangle:
                    - x1: 1632420000
                      x2: 1632434400
                      y1: 1.4843
                      y2: 1.4843
                      name: '1.000'
                      point1Name: null
                      point2Name: null
                    - x1: 1632420000
                      x2: 1632434400
                      y1: 1.48641
                      y2: 1.48641
                      name: '0.618'
                      point1Name: null
                      point2Name: null
                    - x1: 1632420000
                      x2: 1632434400
                      y1: 1.48089
                      y2: 1.48089
                      name: '1.618'
                      point1Name: null
                      point2Name: null
                    - x1: 1632420000
                      x2: 1632434400
                      y1: 1.48548
                      y2: 1.48548
                      name: '0.786'
                      point1Name: null
                      point2Name: null
                    - x1: 1632420000
                      x2: 1632434400
                      y1: 1.4828
                      y2: 1.4828
                      name: '1.272'
                      point1Name: null
                      point2Name: null
                    - x1: 1632420000
                      x2: 1632434400
                      y1: 1.48771
                      y2: 1.48771
                      name: '0.382'
                      point1Name: null
                      point2Name: null
                    - x1: 1632420000
                      x2: 1632434400
                      y1: 1.48706
                      y2: 1.48706
                      name: '0.500'
                      point1Name: null
                      point2Name: null
                    timeZone: America/New_York
                    symbol: EURCAD
                big_movement:
                  summary: Big Movement
                  value:
                    chartType: BIG_MOVEMENT
                    interval: 60
                    length: 41
                    direction: BULLISH
                    priceRange:
                      low: 109.11
                      to: 110.2
                    timeFrame:
                      from: 1632268800
                      to: 1632416400
                    originalLines: []
                    lines:
                    - x1: 1632268800
                      x2: 1632416400
                      y1: 110.2
                      y2: 110.2
                      name: Rectangle
                      point1Name: null
                      point2Name: null
                    - x1: 1632416400
                      x2: 1632416400
                      y1: 110.2
                      y2: 109.11
                      name: Rectangle
                      point1Name: null
                      point2Name: null
                    - x1: 1632416400
                      x2: 1632268800
                      y1: 109.11
                      y2: 109.11
                      name: Rectangle
                      point1Name: null
                      point2Name: null
                    - x1: 1632268800
                      x2: 1632268800
                      y1: 109.11
                      y2: 110.2
                      name: Rectangle
                      point1Name: null
                      point2Name: null
                    forecast: null
                    eventLine:
                      x1: 1632416400
                      x2: 1632416400
                      y1: 111.29
                      y2: 108.02
                      name: Event Line
                      point1Name: null
                      point2Name: null
                    arrow:
                    - x1: 1632416400
                      x2: 1632430800
                      y1: 110.169
                      y2: 110.714
                      name: Arrow Line
                      point1Name: null
                      point2Name: null
                    predictionRectangle: null
                    timeZone: America/New_York
                    symbol: USDJPY
                consecutive_candles:
                  summary: Consecutive Candles
                  value:
                    chartType: CONSECUTIVE_CANDLES
                    interval: 240
                    length: 9
                    direction: BEARISH
                    priceRange:
                      low: 118.38
                      to: 119.74015
                    timeFrame:
                      from: 1632355200
                      to: 1632470400
                    originalLines: []
                    lines:
                    - x1: 1632355200
                      x2: 1632470400
                      y1: 119.74015
                      y2: 119.74015
                      name: Rectangle
                      point1Name: null
                      point2Name: null
                    - x1: 1632470400
                      x2: 1632470400
                      y1: 119.74015
                      y2: 118.38
                      name: Rectangle
                      point1Name: null
                      point2Name: null
                    - x1: 1632470400
                      x2: 1632355200
                      y1: 118.38
                      y2: 118.38
                      name: Rectangle
                      point1Name: null
                      point2Name: null
                    - x1: 1632355200
                      x2: 1632355200
                      y1: 118.38
                      y2: 119.74015
                      name: Rectangle
                      point1Name: null
                      point2Name: null
                    forecast: null
                    eventLine:
                      x1: 1632470400
                      x2: 1632470400
                      y1: 121.1003
                      y2: 117.01985
                      name: Event Line
                      point1Name: null
                      point2Name: null
                    arrow:
                    - x1: 1632470400
                      x2: 1632510000
                      y1: 119.53
                      y2: 118.84993
                      name: Arrow Line
                      point1Name: null
                      point2Name: null
                    predictionRectangle: null
                    timeZone: America/New_York
                    symbol: CHFJPY
      x-codeSamples:
      - lang: PHP
        label: PHP
        source: "<?php\n$type = \"KeyLevel\";\n$uid  = \"600419182744698103\";\n$params = http_build_query([\n\
          \    \"broker_id\"    => 604,\n    \"user\"         => \"myuserid\",\n    \"account_type\" =>\
          \ \"LIVE\",\n    \"expire\"       => 1691193600,\n    \"token\"        => $token,          //\
          \ see \"API Request Authentication\"\n]);\n$url = \"https://api.autochartist.com/to/resources/results/detail/drawing-data/{$type}/{$uid}?\"\
          \ . $params;\nprint_r(json_decode(file_get_contents($url), true));\n"
      - lang: Python
        label: Python
        source: "import requests\n\nresult_type = \"KeyLevel\"\nuid = \"600419182744698103\"\nparams =\
          \ {\n    \"broker_id\": 604,\n    \"user\": \"myuserid\",\n    \"account_type\": \"LIVE\",\n\
          \    \"expire\": 1691193600,\n    \"token\": token,  # see \"API Request Authentication\"\n\
          }\nresp = requests.get(\n    f\"https://api.autochartist.com/to/resources/results/detail/drawing-data/{result_type}/{uid}\"\
          ,\n    params=params,\n)\nprint(resp.json())\n"
  /to/charts/{type_uid}.png:
    get:
      tags:
      - Technical Analysis
      summary: Get Chart Image
      description: 'Returns latest group pattern results for a specific broker. The pattern results are
        cached at every 5 minutes interval.


        ###### Return format


        Image in image/png format.


        ###### Requires authentication


        A valid request with an authorized MD5 token will be accepted.'
      parameters:
      - name: type_uid
        in: path
        required: true
        description: Combined pattern result type and uid (e.g. `KeyLevel_600419182744698103`).
        schema:
          type: string
        example: KeyLevel_600419182744698103
      - name: broker_id
        in: query
        required: true
        description: Your customer ID on our systems (provided to you).
        schema: *id001
        example: 604
      - name: user
        in: query
        required: true
        description: A unique ID of the end-user consuming the information.
        schema: *id002
        example: myuserid
      - name: account_type
        in: query
        required: true
        description: 'Account type: `LIVE` or `DEMO` (encoded as 0 = LIVE, 1 = DEMO in the token).'
        schema: *id003
        example: LIVE
      - name: expire
        in: query
        required: true
        description: Unix timestamp of when the token will expire.
        schema: *id004
        example: 1691193600
      - name: token
        in: query
        required: true
        description: MD5 token - see 'API Request Authentication'.
        schema: *id005
        example: <your-md5-token>
      - name: locale
        in: query
        required: false
        description: Locale language tag (e.g. `en`).
        schema:
          type: string
        example: en
      - name: width
        in: query
        required: false
        description: Chart image width in px. Default is 320px.
        schema:
          type: integer
        example: 320
      - name: height
        in: query
        required: false
        description: Chart image height in px. Default is 240px.
        schema:
          type: integer
        example: 240
      responses:
        '200':
          description: The rendered chart image.
          content:
            image/png:
              schema:
                type: string
                format: binary
              example: Binary PNG image data - the rendered pattern chart.
      x-codeSamples:
      - lang: PHP
        label: PHP
        source: "<?php\n$typeUid = \"KeyLevel_600419182744698103\";\n$params = http_build_query([\n  \
          \  \"broker_id\"    => 604,\n    \"user\"         => \"myuserid\",\n    \"account_type\" =>\
          \ \"LIVE\",\n    \"expire\"       => 1691193600,\n    \"token\"        => $token,          //\
          \ see \"API Request Authentication\"\n    \"locale\"       => \"en\",\n    \"width\"       \
          \ => 320,\n    \"height\"       => 240,\n]);\n$url = \"https://api.autochartist.com/to/charts/{$typeUid}.png?\"\
          \ . $params;\nfile_put_contents(\"chart.png\", file_get_contents($url));\n"
      - lang: Python
        label: Python
        source: "import requests\n\ntype_uid = \"KeyLevel_600419182744698103\"\nparams = {\n    \"broker_id\"\
          : 604,\n    \"user\": \"myuserid\",\n    \"account_type\": \"LIVE\",\n    \"expire\": 1691193600,\n\
          \    \"token\": token,  # see \"API Request Authentication\"\n    \"locale\": \"en\",\n    \"\
          width\": 320,\n    \"height\": 240,\n}\nresp = requests.get(\n    \"https://api.autochartist.com/to/charts/KeyLevel_600419182744698103.png\"\
          ,\n    params=params,\n)\nwith open(\"chart.png\", \"wb\") as fh:\n    fh.write(resp.content)\n"
  /to/resources/results/analysis/{type}/{uid}:
    get:
      tags:
      - Technical Analysis
      summary: Get pattern result analysis
      description: "Returns the plain-text market analysis for a single pattern result, identified by\
        \ its\n`type` and `uid`.\n\nThe analysis text is localized: pass a `locale` (for example `en`,\
        \ `fr`, `tr`) to select the\nlanguage. When no locale is supplied it is resolved from the `Accept-Language`\
        \ header,\nfalling back to `en_US`. Unsupported locales fall back to English.\n\n#### Return format\n\
        \n- **Status 200** - text/plain - the analysis text for the requested pattern result.\n- **Status\
        \ 204** - No Content - returned when no analysis text is available for the\n  requested result.\n\
        \n#### Requires authentication\n\nA valid request with an authorized MD5 token will be accepted."
      parameters:
      - name: type
        in: path
        required: true
        description: The pattern result type (e.g. `KeyLevel`, `ChartPattern`, `Fibonacci`).
        schema:
          type: string
        example: KeyLevel
      - name: uid
        in: path
        required: true
        description: The unique identifier of the pattern result.
        schema:
          type: integer
          format: int64
        example: 600419182744698103
      - name: broker_id
        in: query
        required: true
        description: Your customer ID on our systems (provided to you).
        schema: *id001
        example: 604
      - name: user
        in: query
        required: true
        description: A unique ID of the end-user consuming the information.
        schema: *id002
        example: myuserid
      - name: account_type
        in: query
        required: true
        description: 'Account type: `LIVE` or `DEMO` (encoded as 0 = LIVE, 1 = DEMO in the token).'
        schema: *id003
        example: LIVE
      - name: expire
        in: query
        required: true
        description: Unix timestamp of when the token will expire.
        schema: *id004
        example: 1691193600
      - name: token
        in: query
        required: true
        description: MD5 token - see 'API Request Authentication'.
        schema: *id005
        example: <your-md5-token>
      - name: locale
        in: query
        required: false
        description: Locale for the analysis text (e.g. `en`, `fr`, `tr`).
        schema:
          type: string
        example: en
      responses:
        '200':
          description: The analysis text for the requested pattern result.
          content:
            text/plain:
              example: Rising Wedge has broken through the support line at 8/12 14:00. Possible bearish
                price movement forecast for the next 11 hours towards 133.13.
        '204':
          description: No analysis text is available for the requested result.
      x-codeSamples:
      - lang: PHP
        label: PHP
        source: "<?php\n$type = \"KeyLevel\";\n$uid  = \"600419182744698103\";\n$params = http_build_query([\n\
          \    \"broker_id\"    => 604,\n    \"user\"         => \"myuserid\",\n    \"account_type\" =>\
          \ \"LIVE\",\n    \"expire\"       => 1691193600,\n    \"token\"        => $token,          //\
          \ see \"API Request Authentication\"\n    \"locale\"       => \"en\",\n]);\n$url = \"https://api.autochartist.com/to/resources/results/analysis/{$type}/{$uid}?\"\
          \ . $params;\necho file_get_contents($url);\n"
      - lang: Python
        label: Python
        source: "import requests\n\nresult_type = \"KeyLevel\"\nuid = \"600419182744698103\"\nparams =\
          \ {\n    \"broker_id\": 604,\n    \"user\": \"myuserid\",\n    \"account_type\": \"LIVE\",\n\
          \    \"expire\": 1691193600,\n    \"token\": token,  # see \"API Request Authentication\"\n\
          \    \"locale\": \"en\",\n}\nresp = requests.get(\n    f\"https://api.autochartist.com/to/resources/results/analysis/{result_type}/{uid}\"\
          ,\n    params=params,\n)\nprint(resp.text)\n"
  /to/resources/translations:
    get:
      tags:
      - Technical Analysis
      summary: Localization
      description: 'Returns the localized labels (translations) used to render pattern names, directions
        and

        interface strings for a given language.


        Pass the required `lang` parameter (for example `en`, `fr`, `tr`) to select the language.

        The response is a flat JSON object of translation keys mapped to their localized values.


        #### Return format


        - **Status 200** - application/json - a JSON object of `key` -> `localized value` pairs.


        #### Requires authentication


        A valid request with an authorized MD5 token will be accepted.'
      parameters:
      - name: lang
        in: query
        required: true
        description: Language to return translations for (e.g. `en`, `fr`, `tr`).
        schema:
          type: string
        example: en
      - name: broker_id
        in: query
        required: true
        description: Your customer ID on our systems (provided to you).
        schema: *id001
        example: 604
      - name: user
        in: query
        required: true
        description: A unique ID of the end-user consuming the information.
        schema: *id002
        example: myuserid
      - name: account_type
        in: query
        required: true
        description: 'Account type: `LIVE` or `DEMO` (encoded as 0 = LIVE, 1 = DEMO in the token).'
        schema: *id003
        example: LIVE
      - name: expire
        in: query
        required: true
        description: Unix timestamp of when the token will expire.
        schema: *id004
        example: 1691193600
      - name: token
        in: query
        required: true
        description: MD5 token - see 'API Request Authentication'.
        schema: *id005
        example: <your-md5-token>
      responses:
        '200':
          description: A JSON object of translation key -> localized value pairs.
          content:
            application/json:
              example:
                keylevel: Key Level
                chartpattern: Chart Pattern
                fibonacci: Fibonacci
                direction.bullish: Bullish
                direction.bearish: Bearish
                trend_change.reversal: Reversal
                trend_change.continuation: Continuation
                interval.60: 1 hour
                interval.240: 4 hours
                interval.1440: 1 day
      x-codeSamples:
      - lang: PHP
        label: PHP
        source: "<?php\n$params = http_build_query([\n    \"lang\"         => \"en\",\n    \"broker_id\"\
          \    => 604,\n    \"user\"         => \"myuserid\",\n    \"account_type\" => \"LIVE\",\n   \
          \ \"expire\"       => 1691193600,\n    \"token\"        => $token,          // see \"API Request\
          \ Authentication\"\n]);\n$url = \"https://api.autochartist.com/to/resources/translations?\"\
          \ . $params;\nprint_r(json_decode(file_get_contents($url), true));\n"
      - lang: Python
        label: Python
        source: "import requests\n\nparams = {\n    \"lang\": \"en\",\n    \"broker_id\": 604,\n    \"\
          user\": \"myuserid\",\n    \"account_type\": \"LIVE\",\n    \"expire\": 1691193600,\n    \"\
          token\": token,  # see \"API Request Authentication\"\n}\nresp = requests.get(\"https://api.autochartist.com/to/resources/translations\"\
          , params=params)\nprint(resp.json())\n"
