Jump to content

jlz

Community Member
  • Content Count

    352
  • Joined

  • Last visited

  • Days Won

    16

Posts posted by jlz

  1. 1 hour ago, wki said:

    Ok great, so I can use the streaming api for this.  Assuming I can do this over multiple forex pairs?  I have the streaming api working in that I have been able to print to screen in Python but have hit a bit of a block going beyond that, wasn't sure if it was possible. Any resources you can recommend on how to do this? I'll look myself but if you have anything at your fingertips, that would be 👍

    Thanks!

    You can subscribe to multiple epics with the streaming service, once you get your updates it will be per epic. You should hold a collection of epics and its prices in memory , then act on every price update.

    1. Subscribe to prices. (Streaming service)

    2. Subscribe to trades. (Streaming service)

    3. Hold your positions locally in a collection (Get the first snapshot from the REST API)

    4. Set your thresholds per epic in a another collection.

    5. Wait for a price update (Streaming), on that update check your positions and thresholds. Once you reach a level call the Rest API to move the stop.

    6. You will get an update from the Trades streaming service, update your positions collection in that update.

    If you can share your code on Github I can have a look when you have something set up.

  2. On 30/03/2021 at 17:35, wki said:

    Hi. I have a trading strategy that I would like to execute but it involves moving the stop once when the price drops below a set threshold. Example: 

    • Current EURUSD price is at 10,000 (easy numbers)
    • I put down a sell working order with the level set at 9,980 and a stop set at 9,990. The price drops to below 9,980 and the order is placed.
    • As soon as the price drops further to 9,960 or below, the stop is moved close to the current price, i.e. it is moved from 9,990 to 9,965
    • Note this is a once-off move and a trailing stop won't (I don't think) give me what I need
    • I monitor the price further and tap out if it reaches a lower profit taking level 

    I am achieving this currently through another rest api process that watches the price every 1 minute and moves the stop when the threshold is hit, but I would like something more automated / on the platform itself as I often miss the intra-minute movements.  I have considered a streaming approach but this can't be set up for limit setting right?  Also considered using alerts but this is not (currently) part of the rest api.  Can I achieve the above using the current IG rest api tools or even 3rd party tools?  Thanks!

    I don't see why you couldn't use the steaming API to watch the price and the REST API to move the stop. 

    If your problem is that you would like to act quicker between minutes just watch the price setting up the streaming service and then when the threshold is hit call the REST API to update the stop. You have already most of the work done.

  3. 22 minutes ago, wki said:

    Through the rest api, the ability to add additional stops and/or limits to existing orders if a level is hit.  For example, I have a current sell order in place with a stop at 10,050. If the price moves down to say 9,950, I would like to move the stop quite close to say 9,960. I could achieve this if I could create another instruction on the platform that specifies the level and the stop, linked to the same order id.  Also the ability to edit this additional instruction via the rest api.  The original stop of 10,050 would still be in place but would be redundant as the 9,960 stop will be hit first. This would make my day.

    https://labs.ig.com/rest-trading-api-reference/service-detail?id=593

    You can update a position by using this endpoint.

  4. Hi Dylan1234, can we see that complaint that you are going to file? 

    A demo account is never going to be the same as the live account. Many people have complained about it, always as a rant more than an actual action, but I've never seen an actual formal complaint that would challenge the behaviour of a demo account. 

    It would be interesting to see where that complaint is ending at, how it is filed, its format and who is addressed to.

     

  5. 30 minutes ago, andysinclair said:

    Yeah I agree, for the last few months it attracted lots of spammers for some reason (I presume it was not being moderated and had always attracted spam).

    However, it did have lots of useful content, often I would search on Google for a question/issue and would see a useful forum post in the results. Over the years it became a decent knowledge base, which I guess is all lost now.

    Good point, I guess they turned it down because no one was using it and they didn't think about those queries.

    Maybe a good solution would be to load those posts into a knowledge base directory so we still can search through it.

  6. I don't understand why you guys want that forum to be back. It was abandoned for several months and you could not see an interesting post apart from the usual spam that you see on unmoderated boards.

    It had many posts selling pills and magical remedies for weeks until someone decided to look at it, you can tell that there wasn't an admin taking care of the content there.

    In the last year I did not see a useful response there and every conversation about the API was held on this forum, so what is the point of asking for the other one to be back?

  7. 51 minutes ago, Ozquant said:

    Guess my luck is still running  

    ScreenShot280.jpg

    Hi 20years-trader. Well done. I can see that you have potential. I believe in you. I've seen many newbies posting the same screenshots and they are now doing well. Carry on matey.

  8. 40 minutes ago, BoJK said:

    Does this mean you win small and lose big? Notwithstanding your rate of return is above parity? Pardon me, I really dont know how to read this data.

     

    I guess mine is worst (lose big, rate of return negative.) 

    You are right. That's exactly what is happening. 

  9. On 03/03/2021 at 08:35, Ozquant said:

    My last month  , you got one ,   Beta Analytics  .  the efficacy of these lines are the bottom line  . willing to share  ?   

     

    ScreenShot220.jpg.a4a7c8fb4348a66f03779a86c3db8267.jpg

    Those are really cute numbers. For someone that has been trading "over 20 years" is not much. Try to post something with more than a thousand trades. Anyone can make 50 trades out of luck. 

    Attached are mine. 

    Screenshot_20210305-030530~2.png

  10. No, normally strategies are market related. You will find many people that trade only one market on a daily basis and eventually will venture into other options.

    The benefit of watching a market constantly is that you get to understand it better than if you would look at many.

    You could group markets into their trends i.e sideways, long or short markets , then your techniques might be valid for multiple markets, but since you have to account position sizing based on price,  volatility and margin required  I doubt that a single technique would work in multiple markets.

    • Like 1
  11. This the response from the search markets endpoint. Does it help?

    Quote

    /gateway/deal/markets?searchTerm=Tesla

    {
        "markets": [{
            "epic": "ED.D.TL0GY.DAILY.IP",
            "instrumentName": "Tesla Inc (DE)"
        }, {
            "epic": "ED.D.TL0GY.MAR.IP",
            "instrumentName": "Tesla Inc (DE)"
        }, {
            "epic": "ED.D.TL0GY.JUN.IP",
            "instrumentName": "Tesla Inc (DE)"
        }, {
            "epic": "ED.D.TL0GY.SEP.IP",
            "instrumentName": "Tesla Inc (DE)"
        }, {
            "epic": "UD.D.TSLA.DAILY.IP",
            "instrumentName": "Tesla Motors Inc (All Sessions)"
        }, {
            "epic": "UD.D.TSLA.MAR.IP",
            "instrumentName": "Tesla Motors Inc (All Sessions)"
        }, {
            "epic": "UD.D.TSLA.JUN.IP",
            "instrumentName": "Tesla Motors Inc (All Sessions)"
        }, {
            "epic": "UD.D.TSLA.SEP.IP",
            "instrumentName": "Tesla Motors Inc (All Sessions)"
        }, {
            "epic": "KA.D.STSLLN.DAILY.IP",
            "instrumentName": "Leverage Shares -1x Tesla ETP"
        }, {
            "epic": "KA.D.STSLLN.MAR.IP",
            "instrumentName": "Leverage Shares -1x Tesla ETP"
        }, {
            "epic": "KA.D.STSLLN.JUN.IP",
            "instrumentName": "Leverage Shares -1x Tesla ETP"
        }, {
            "epic": "KA.D.STSLLN.SEP.IP",
            "instrumentName": "Leverage Shares -1x Tesla ETP"
        }, {
            "epic": "KA.D.2TSLLN.DAILY.IP",
            "instrumentName": "Leverage Shares 2x Tesla ETP"
        }, {
            "epic": "KA.D.2TSLLN.MAR.IP",
            "instrumentName": "Leverage Shares 2x Tesla ETP"
        }, {
            "epic": "KA.D.2TSLLN.JUN.IP",
            "instrumentName": "Leverage Shares 2x Tesla ETP"
        }, {
            "epic": "KA.D.2TSLLN.SEP.IP",
            "instrumentName": "Leverage Shares 2x Tesla ETP"
        }, {
            "epic": "KA.D.3LTSLN.DAILY.IP",
            "instrumentName": "GraniteShares 3x Long Tesla Daily ETP"
        }, {
            "epic": "KA.D.3LTSLN.MAR.IP",
            "instrumentName": "GraniteShares 3x Long Tesla Daily ETP"
        }, {
            "epic": "KA.D.3LTSLN.JUN.IP",
            "instrumentName": "GraniteShares 3x Long Tesla Daily ETP"
        }, {
            "epic": "KA.D.3LTSLN.SEP.IP",
            "instrumentName": "GraniteShares 3x Long Tesla Daily ETP"
        }, {
            "epic": "KA.D.3STSLN.DAILY.IP",
            "instrumentName": "GraniteShares 3x Short Tesla Daily ETP"
        }, {
            "epic": "KA.D.3STSLN.MAR.IP",
            "instrumentName": "GraniteShares 3x Short Tesla Daily ETP"
        }, {
            "epic": "KA.D.3STSLN.JUN.IP",
            "instrumentName": "GraniteShares 3x Short Tesla Daily ETP"
        }, {
            "epic": "KA.D.3STSLN.SEP.IP",
            "instrumentName": "GraniteShares 3x Short Tesla Daily ETP"
        }]

     

    • Like 1
  12. 12 minutes ago, u0362565 said:

    Ah ok so there is a time limit really thanks for that, important point.

    I  trust Casey's comment  on that you should only get charged with the spread again at the date of expiry, as that has been the response every time someone asked the question, but then I read the document and it says something completely different. I think you need to give them a call and see the official response. We are not helping much here.

  13. 27 minutes ago, Morpheus said:

    Have you noticed today that you can only have one device open at a time? for example if I log in on the phone app it logs me out on my MacBook browser, this is a reasonable thing I think and will presumably reduce the number of concurrent connections to the IG servers, this action alone, is enough to conclude that the outsages were indeed related to system overload at least in large part.

     

    You are never going to stop :D

    Now tell me why the API failed to respond at the same the website login did.

  14. Looking at the rollover rules document at:

    https://deal.ig.com/content/files/140800_IGI_UK_Rollover_Rules.pdf

    Copied from the document.

    Quote

    Rolling over a bet involves closing the old bet and opening a new one in the same size and direction as that of the original. Any profit or loss on the old bet will be realised to your account and you will have to settle any losses on the bet that has been closed.

     

  15. Now let's talk again about those "technical issues". Those that happened at the very same time all across the world in multiple countries and to multiple companies. My guess is that all of those brokers had to go through the same clearing firms/liquidity providers. 

    It looks like a switch off button.

    Better to have "login problems" than having to disable every single market that doesn't have proper liquidity available. 

    I believe these clearing firms do not discriminate per market and they just stop providing a service for a period of time, the very same time these brokers had to stop providing a service. Because after all, why would you allow customers to login if they can't do anything.

    Thank you for posting the video, it will help many to understand what is going on, including me. 

    • Like 2
  16. 30 minutes ago, JIT13 said:

    Does IG monitor these posts? It would be good to see them reply to these concerns.

    Looking at all of the analysis on RobinHood there seems to be two possible causes for them halting these stocks; 1. a conflict of interest or 2. they have a liquidity problem.

    Does IG have liquidity issues?

    Am looking at Capital.com, does anyone have experience with them? Good or bad? Their advert claims they have no trading blocks in place.

    I am not sure if they are good or not but capital.com are trolling every broker by showing GME on their main page. They must be laughing at the whole thing there. They don't have an API for developers unfortunately but their spreads seem reasonable.

    The didn't seem to have any "technical issue" last week. So there is that.

    • Like 2
  17. 49 minutes ago, Morpheus said:

    Can we find out if there are common liquidity providers to these brokers ?

    The list is not small, for any query I send to Google I get the usual big bank names where Citibank and Citadel seems to be the most common among other 15-20 providers.

    Many comments came out pointing that broker shortages are normally related to these providers but none mentioned exact names and particular reasons. 

  18. These are the brokers that were reported  to have problems yesterday.

    https://istheservicedown.co.uk/status/ig-broker
    https://istheservicedown.co.uk/status/cmc-markets
    https://istheservicedown.co.uk/status/etrade
    https://istheservicedown.co.uk/status/etoro
    https://istheservicedown.co.uk/status/interactive-brokers
    https://istheservicedown.co.uk/status/robinhood
    https://istheservicedown.co.uk/status/td-ameritrade
    https://istheservicedown.co.uk/status/trading-212

    We can tell that the down time was very similar in all of them, with the exception of Robinhood that is still having problems. If you click on the full report you will see the location where those users reported the problem from, they are all over the world.

    Some users are already pointing out in comments that there was a shortage of equity liquidity from the usual providers. Now the question to me really is : Why those liquidity providers stopped or decreased their availability over the last week?

    Some will point to the recent news about GME and Reddit but I can't subscribe that, mainly because I can't prove it. All I can say is that the reason why we had an outage seams obvious,  but the trigger is still to be understood.

     

    • Like 1
×
×
  • Create New...