Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 28 2018 03:48
    jy-binary unassigned #98
  • Jul 28 2018 03:48
    jy-binary unassigned #97
  • Jul 28 2018 03:48
    jy-binary unassigned #95
  • Jul 28 2018 03:48
    jy-binary unassigned #94
  • Jul 28 2018 03:48
    jy-binary unassigned #93
  • Jul 28 2018 03:48
    jy-binary unassigned #92
  • Jul 28 2018 03:48
    jy-binary unassigned #81
  • Jul 28 2018 03:48
    jy-binary unassigned #80
  • Jul 28 2018 03:48
    jy-binary unassigned #79
  • Jul 28 2018 03:48
    jy-binary unassigned #74
  • Jul 28 2018 03:48
    jy-binary unassigned #75
  • Jul 28 2018 03:48
    jy-binary unassigned #73
  • Jul 28 2018 03:48
    jy-binary unassigned #57
  • Jul 28 2018 03:48
    jy-binary unassigned #56
  • Jul 28 2018 03:48
    jy-binary unassigned #46
  • Jul 28 2018 03:48
    jy-binary unassigned #1
  • Feb 15 2018 09:17
    sk94191 commented #72
  • Sep 16 2017 23:28
    excepticons closed #101
  • Sep 16 2017 23:28
    excepticons commented #101
  • Sep 16 2017 22:45
    excepticons opened #101
Anton Driemin
@AntonDriemin
insufficient scope
looks like I don't have correct permissions request
Frank Carnovale
@frank-binary
AH indeed. Yeah it's granted to app developers on an app-by-app basis. I will fix this asap Anton.
Anton Driemin
@AntonDriemin
Thank you.
Frank Carnovale
@frank-binary
@AntonDriemin : You will have to repeat the user signon procedure now; but then you should have permissions to POST.
If you have a close look at the actual low-level attributes that come back from an access-token call, you'll see the 'API product' named in there. "binary.com WebAPI Product 3 " is the one that allows POSTs. btw also I can't remember if we ever discussed Scopes. Ask for Scope S111 which is short for chat + price + trade.
Anton Driemin
@AntonDriemin
I should explicitly set Content Length=0 for /contract POST to make it work.
Frank Carnovale
@frank-binary
@Anton setting contentLength 0 explicitly sounds reasonable; depends on what sort of http request library you are using to construct the call. My server-side perl code must be doing that silently for me.
Frank Carnovale
@frank-binary
Latest api entry-point now available; "/countries" which will give short-code and long-name pairs for those countries which are valid countries of 'residence' for users to sign up with us. Note that places like USA, Iran etc not in list.
This is a stepping stone towards significant new entry-point coming soon: Register-new-Account.
Anton Driemin
@AntonDriemin
ah, looks like you are expecting to have it on the dashboard, correct?
Frank Carnovale
@frank-binary
Wouldn't bother about 'countries' by itself; but I hope to make the new 'register new Virtual account' api entry point available soon, and it will be a nice widget to add to your dashboard.
It's interesting because it's the first call that (by definition) does NOT require any authorization. I will add a special case to the Apigee rules for that.
Ehtesham Ahmed
@ehteshamy2k
@AntonDriemin Hi, I want to explore ExtJS project. Could you please provide me instructions on this?
Anton Driemin
@AntonDriemin
Good afternoon. Sure, we can have skype call with screenshare, please let me know when you ready. I'm planning to deploy /contract API today, so maybe better to talk in Monday or during weekends.
Anton Driemin
@AntonDriemin
Can you please check http://prntscr.com/4qflwr
Ehtesham Ahmed
@ehteshamy2k
@AntonDriemin Thank, lets have it on Monday than. I would check on Skype.
Anton Driemin
@AntonDriemin
Hello, I'm don't have any requests from you. Please let me know when you will have time. Thank you.
Frank Carnovale
@frank-binary
@ehteshamy2k Just to let you know, recent Runscope failures are now addressed. It's very nice that you even tested in one of the tests that the HTTP response header had 'Binary WebAPI' in it. Unfortunately after recent server-side config changes, the user-facing webserver is now nginx, so that test is now invalid. I removed it. Also the :5002 port number on the login page is now replaced by default port number and all server-side paths now start with /api/.
API clients are unaffected because the Apigee service hides these urls anyway.
Frank Carnovale
@frank-binary
@Anton yes you are right there is still one more thing to fix after yesterday's changes. The 'Apigee Console' hard-codes the login page url. I will fix that now. It's a special case.. regular clients following the oauth procedure do not do that.
Frank Carnovale
@frank-binary
Apigee Console now fixed.
Anton Driemin
@AntonDriemin
Good afternoon, Frank. How I can get start_time for each symbol for contract category Rise/Fall ?
Anton Driemin
@AntonDriemin
...and another question:
for call http://rmg-prod.apigee.net/v1/binary/contract/ASIANU/R_50/sec/3/USD/100/0
I'm getting error message: "This trade is not offered.", "Duration must be between 0 second and 0 second."
Can you please look?
Anton Driemin
@AntonDriemin
...and another question:
how can I get acceptable range for "Barrier offset" - for example, for In/Out contract I need to have High/Low barrier offset, for Touch/No Touch its just Barrier Offset - can you please clarify how to get these values or calculate?
maybe I can get valuable information in response of http://rmg-prod.apigee.net/v1/binary/contract/CALL/frxUSDJPY/sec/3600/USD/10/0/S0P/S2P
but I can't understand how to use some of response fields.
Thank you.
Frank Carnovale
@frank-binary
@Anton, I'm looking at these now..
How I can get start_time for each symbol for contract category Rise/Fall ?
Frank Carnovale
@frank-binary
.. If you mean the start_time for pricing (or buying) a contract, then this is something that the user decides.. Is the contract to start now (start_time 0) or sometime in the future (start_time = some epoch value). This distinction is clearer in the "offerings" call in which one of the available filters is forward-starting = yes or no.
Anton Driemin
@AntonDriemin
I mean this dropdown: http://prntscr.com/4tv61v
its different from symbol to symbol
Frank Carnovale
@frank-binary
ah I see.. so we are saying, how do we know the valid range of start-times per-symbol for forward-starting contracts. hmm not sure if we expose that in the api, let me look around a little..
we do get "intraday_durations" but unfortunately it did not report limits on allowed start-times. I am going to have to research this in more detail and enhance the API to expose this.
Anton Driemin
@AntonDriemin
thank you
Re your qn on ASIANU. It's a new bet-type but in theory the webapi layer should not be affected. Looking deeper..
Frank Carnovale
@frank-binary
ok. the ASIAN U/D types are a very important change.. instead of a "duration" we specify the number of ticks. The Contract 'rest' interface does not support that yet. Anton, for now, best to not implement ASIAN contract types. I'll have to work on that.
(at least, we can now say the error message did make sense after all).
Anton Driemin
@AntonDriemin
ok. But do you have more information about valid range of start-times per-symbol?
Frank Carnovale
@frank-binary
We need to enhance the output of the contract_category/symbol call to deliver valid start-time info. For now, best way is to observe the time-gaps currently offered by the legacy web interface. There is a lot of code behind the derivation of these time-boundaries and I will have to identify best way of exposing this via the api.
Frank Carnovale
@frank-binary
Anton we have some useful info in this call http://rmg-prod.apigee.net/v1/binary/symbols/frxUSDJPY
see property "intraday_interval_minutes". For forward-starting contracts, this shows the minimum start_time delay from "now".
Frank Carnovale
@frank-binary
Your other question is about now to find barrier ranges. This is actually a difficult qn because it's not a static property of the symbol. It varies according to current market conditions. The only approach available at present is to guess reasonable boundaries and see if a contract-pricing call is accepted. Note that the trading website does not apply explicit barriers either.
Anton Driemin
@AntonDriemin
I see intraday_interval_minutes, thank you, but it will not allow me to build valid range here http://i.imgur.com/Xx0mrpX.png - you see, it contains two time ranges with 5-mins interval
Frank Carnovale
@frank-binary
Yes I see. Understood. It looks like the available starts are confined to the actual Stock Exchange trading hours. So from api calls we have the fact that the interval size (starting now) is 5 minutes, but we do not have the exchange trading hours, and we do not know how many forward-reaching days we want to offer. Again, I will have to study how the website gets this info. Trading hours are published here https://www.binary.com/c/trading_times.cgi
This info will have to be exposed in a new API call.
Anton Driemin
@AntonDriemin
ok, thank you. I have trading times already on the dashboard, however, not from apigee, but from the web site directly.
Anton Driemin
@AntonDriemin
I mean - I'm unable to use trading times in the drop down list (or it will be bad solution - parse HTML from the web site)
Frank Carnovale
@frank-binary
gotit. Agreed, we don't want to depend on scraping the website. The good news: I began work immediately on a new set of calls "/exchanges" and "/exchanges/{exchange}". The latter will deliver all sorts of useful exchange-related meta data, including regular trading hours. Turns out to be non-trivial internally, but hope to deliver tomorrow sometime.