regentmarkets-repo-archive / binary-extjs

http://extjs.binary.com
3 stars 4 forks source link

Minimum and maximum contract time #74

Open AntonDriemin opened 9 years ago

AntonDriemin commented 9 years ago

I can see min and max duration for the contract at the web site:

image

For the apigee request: http://rmg-prod.apigee.net/v1/binary/markets/forex/contract_category/higherlower/symbol/frxAUDJPY I'm getting:

"CALL":  {
    "payouttime": "end",
    "barriers": 1,
    "sentiment": "up",
    "payout_type": "binary",
    "display_name": "higher",
    "intraday_durations":  {
      "min": 900,
      "max": 18000
    },
    "daily_durations":  {
      "min": 1,
      "max": 365
    },
    "other_side_code": "PUT"
  },

but for the call: http://rmg-prod.apigee.net/v1/binary/markets/random/contract_category/digits/symbol/R_100 I'm getting:

{
  "DIGITDIFF":  {
    "other_side_code": "DIGITMATCH",
    "payouttime": "end",
    "barriers": 1,
    "sentiment": "differ",
    "payout_type": "binary",
    "display_name": "differs"
  },
  "DIGITMATCH":  {
    "other_side_code": "DIGITDIFF",
    "payouttime": "end",
    "barriers": 1,
    "sentiment": "match",
    "payout_type": "binary",
    "display_name": "matches"
  }
}

without durations. Can you please specify min and max time for all types of market/symbols?

Question: To get contract information, I need to call /offerings and after that I need to call /contract_category Do you have possibility to specify min and max time in the offerings response? Like this:

"contract_category": "Asian Up/Down",
                  "available":  [
                     {
                      "is_forward_starting": "N",
                      "contract_type": "asian down",
                      "is_path_dependent": "N",
                      "expiry_type": "tick",
                      "payout_time": "end",
                      "durations":  {
                            "min": 10,
                            "max": 100
                          }
                    },

Thank you.

frank-binary commented 9 years ago

Quants, how do I determine min and max durations after a produce_contract call?