Jump to content

OfentseIG

Administrators
  • Posts

    622
  • Joined

  • Last visited

Posts posted by OfentseIG

  1. On 24/03/2023 at 02:01, Konrad said:

    Hi

    I've fetched some historic data (MINUTE resolution one of the NYSE epics) using Rest API - I've done it using DEMO account and I've noticed some weird values in pre/after market hours

    Data structure:
    date,  volume,  openBid,  openAsk,  closeBid,  closeAsk,  highBid,  highAsk,  lowBid,  lowAsk

    Eamples:

    2023/03/08 00:00:00,320,0,0,0,0,0,0,0,0

    2023/03/08 00:04:00,167,8220,0,8220,0,8220,0,8220,0

    2023/03/08 00:10:00,1359,0,8233,0,8231,0,8233,0,8231

    2023/03/08 00:14:00,1,0,0,0,0,0,0,0,0


    all examples above shows that:
    - there was a vlume > 0 which indicates that something was traded
    but there are missing bid/ask prices (especially in the first example)


    so my questions are:
    should I expect data from PROD environment to be more reliable?
    are you (IG) going to fix these data points somehow in the future?
     

    Thanks

    K.

    Hi @Konrad

    We don't offer shares on API but unable to confirm if that's the reason for the error. Please reach out to webapisupport@ig.com for more assistance. 

    All the best, OfentseIG

  2. 22 hours ago, mrbluefox said:

    How do i enable options and CFDs in my ig account? Trading index and FX is greyed out for me.

    Hi @mrbluefox

    Thanks for reaching out. 

    On your CFD or Spread bet account, you will have the option to trade Options. If you are using mobile app, click Markets and the search feature which will reflect Options in the market list. 

    image.png

    All the best, 

    OfentseIG

  3. On 06/04/2023 at 14:50, Day3 said:

    Hi, please add the following ticker for trading asap:

    Name Of Stock - Kiromic BioPharma, Inc.

    Name of Stock Exchange - NASD

    Leverage or share dealing - Share dealing

    Ticker - $KRBP

    Market Cap - $2.4m

    Hi @Day3

    Thanks for reaching out. Your request was forwarded to the shares team. We will send you an update soon. 

    All the best, OfentseIG

  4. On 05/04/2023 at 19:18, HYDROCARBON said:

     

    Hi, please add the following ticker for ISA:

    Name Of Stock - Icahn Enterprises 

    Name of Stock Exchange - NASDAQ 

    Leverage or share dealing - ISA

    Ticker - $IEP

    Market Cap - $18.5bn

    Hi @HYDROCARBON

    The stock is on closings only. 

    The US Regulator has announced the introduction of a new tax regulation called ‘Section 1446(f)’ through the Internal Revenue Service which will impact clients who hold positions in publicly traded partnerships (PTPs). The net effect of this tax amendment will be a 10% increase in the dividend withholding tax to be charged on PTPs (which is currently 37%, expected to increase to 47%); and a new 10% tax on all proceeds made on the sale of PTP positions effective from the 1st of January 2023. 

    Therefore, clients can only close their existing positions to avoid being charged the new tax associated with the selling of PTPs. We won't be opening new positions on these securities. 

    Thanks, OfentseIG

    • Thanks 1
  5. 6 hours ago, cate said:

    Hi @OfentseIG,

    Would you be able to check what is happening with EUR/MXN this week? Last night they applied only a single day of FX funding, and the night before none. I'm wondering which night the 5x rate will apply. I lifted all my other negative carry positions before 10 last night because I didn't want to be hit by the 5x charges so I don't know whether it was just EUR/MXN that was different or whether none of them did what you expected. I don't want to put everything back today and get hit with 5x interest tonight.

    Thanks,

    Cate

    Hi @cate

    We can check with the relevant team for you. How long did you have EUR/MXN open? We are unable to ask further information on your account as this is a public platform. If you are able to confirm the time you opened and closed the position, we would really appreciate it. 

    Thanks, OfentseIG

    • Like 1
  6. On 04/04/2023 at 19:15, johnny25 said:

    Thanks for the reply. So if I buy US stock I pay a minimum of $15 on the purchase and $15 on the sale (commission). All my sale proceeds will be kept as dollars and not converted back to sterling. Is this correct? Thanks.

    Hi @johnny25

    Thanks for reaching out. 

    Yes that is correct. 

    All the best, OfentseIG

  7. 3 hours ago, cate said:

    Hi  @MongiIG or any one else at IG,

    Just a quick question. There was no overnight FX interest applied to my EUR/MXN last night, and I also noticed on gold it was for 5 days.

    I presume this week is a bit different because of Easter. Do you know if tonight is the usual Wednesday night 3X, and particularly what happens to the EUR/MXN this week?

    Normally I try to avoid having any positions open that have big negative carry on a Wednesday night but wondering when that will hit this week.

    Many thanks!

    Cate

    Hi @cate

    Thanks for reaching out. 

    As most pairs settle on a T+2 basis you usually pay 3 days of funding when you hold a position through 10pm on a Wednesday (paying for the weekend). As we have two bank holidays, it will cost 5 days overnight funding when you have your position open until Tuesday. 

    Thanks, 

    OfentseIG

    • Like 1
  8. 1 hour ago, lukeTradingLearner said:

    Hi im new to ig and automation . im interested in the trading API and making automated scripts. I am interested in making sculping scripts. I have a few questions that i cant find.

    • What's the api Request limit. there is usually a cap per month or something?
    • How fast does the api place orders
    • When I made my fist complete script where is the best place to host a server that uses the script to reduce latency(what area are the ig servers located I want to host serve close to them)
    • How do i find out what times the market is open. im using EUR/USD in this script.

    I am working on the foundation to all my trading strategies. i want to download historical data and store it to a csv file. every 5 min it will add new data to the end of the file. also it checks if market is open so does not waste api requests. Im very new to coding and automation and there hardly anything online. if anyone has suggestions/tips to deploy trading strategies would be very helpful. 

    Here is my foundation of my script that i made so far so you can see my approach of using the api:

    import requests
    import pandas as pd
    import json
    from datetime import datetime
    import time
    from datetime import time as dt_time
    api_key = 'api_key'
    ig_username = 'usename'
    ig_password = 'password'
    base_url = 'https://demo-api.ig.com/gateway/deal' #change for live

    headers = {
        'Content-Type': 'application/json; charset=UTF-8',
        'Accept': 'application/json; charset=UTF-8',
        'X-IG-API-KEY': api_key,
        'Version': '2'
    }
    def authenticate():
        data = {
            "identifier": ig_username,
            "password": ig_password
        }
        response = requests.post(f"{base_url}/session", headers=headers, json=data)
        if response.status_code == 200:
            if 'CST' in response.headers and 'X-SECURITY-TOKEN' in response.headers:
                return response.headers['CST'], response.headers['X-SECURITY-TOKEN']
            else:
                raise ValueError(f"Error: 'CST' or 'X-SECURITY-TOKEN' not found in response headers. Response: {response.text}")
        else:
            raise ValueError(f"Error {response.status_code}: {response.text}")

    def get_eur_usd_data(cst, x_security_token, start_date, end_date):
        headers_with_token = headers.copy()
        headers_with_token['CST'] = cst
        headers_with_token['X-SECURITY-TOKEN'] = x_security_token
        resolution = 'MINUTE_5'
        params = {
            'resolution': resolution,
            'from': start_date,
            'to': end_date
        }
        request_url = f"{base_url}/prices/CS.D.EURUSD.MINI.IP"
        response = requests.get(f"{base_url}/prices/CS.D.EURUSD.MINI.IP/"+resolution+"/"+start_date+"/"+end_date,headers=headers_with_token)
        if response.status_code == 200:
            data = json.loads(response.text)
            return data['prices']
        else:
            raise ValueError(f"Error {response.status_code}: {response.text}")

    def is_market_open_manual():
        # Define market hours (e.g., 5 PM Sunday to 5 PM Friday EST)
        open_time = dt_time(17, 0, 0)
        close_time = dt_time(17, 0, 0)
        start_of_week = 6  # Sunday
        end_of_week = 4  # Friday

        now = datetime.utcnow()
        now_time = now.time()
        now_weekday = now.weekday()

        if start_of_week <= now_weekday <= end_of_week:
            if start_of_week == now_weekday:
                return now_time >= open_time
            elif end_of_week == now_weekday:
                return now_time < close_time
            else:
                return True
        else:
            return False
    def is_market_open(cst, x_security_token): #Note uses api request have not uses yet
        headers_with_token = headers.copy()
        headers_with_token['CST'] = cst
        headers_with_token['X-SECURITY-TOKEN'] = x_security_token
        epic = 'CS.D.EURUSD.MINI.IP'

        request_url = f"{base_url}/markets/{epic}"
        response = requests.get(request_url, headers=headers_with_token)
        if response.status_code == 200:
            data = json.loads(response.text)
            return data['snapshot']['marketStatus'] == 'TRADEABLE'
        else:
            raise ValueError(f"Error {response.status_code}: {response.text}")

    def update_csv(filename, data):
        df = pd.DataFrame(data)
        df['datetime'] = pd.to_datetime(df['snapshotTime'], unit='ms')
        df.set_index('datetime', inplace=True)

        if not df.empty:
            try:
                existing_df = pd.read_csv(filename, index_col='datetime', parse_dates=True)
                df = existing_df.append(df)
                df.to_csv(filename)
            except FileNotFoundError:
                df.to_csv(filename)
    def main():
        filename = 'eur_usd_5min_data.csv'
        retry_limit = 3
        retry_delay = 60  # Time in seconds between retries

        while True:
            try:
                cst, x_security_token = authenticate()

                if is_market_open_manual():
                    try:
                        existing_df = pd.read_csv(filename, index_col='datetime', parse_dates=True)
                        start_date = existing_df.index[-1].strftime('%Y-%m-%d %H:%M:%S')
                    except FileNotFoundError:
                        start_date = '2023-03-01 00:00:00'

                    end_date = datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')

                    data = get_eur_usd_data(cst, x_security_token, start_date, end_date)
                    update_csv(filename, data)
                    print("Data updated.")
                else:
                    print("Market is closed, no data is retrieved.")

                # Sleep for 5 minutes (300 seconds)
                time.sleep(300)

            except (ValueError, requests.exceptions.RequestException) as e:
                print(f"An error occurred: {e}")
                retry_limit -= 1
                if retry_limit > 0:
                    print(f"Retrying... {retry_limit} attempts remaining.")
                    time.sleep(retry_delay)
                else:
                    print("Retry limit reached. Exiting.")
                    break

    if __name__ == '__main__':
        main()
     

    Hi @lukeTradingLearner

    Thanks for reaching out. Have a look at this link: https://labs.ig.com/faq

    It answers most of your questions if not all. Please let me know if you still need assistance. We are more than happy to help. 

    Thanks,

    Ofentse

     

  9. 4 hours ago, marke said:

    I beleive your margin requirements listed on a deal ticket are incorrect (for both spot gold and silver)

     

    Hi @marke

    Thanks for reaching out. 

    Would you please send us a screenshot of the deal ticket. We will investigate and fix the platform issue regarding margin calculations. 

    Thanks, OfentseIG

  10. A more cautious tone prevailed in Asia overnight, as markets digested the drop in US job openings. Hopes that this might lead to a more dovish Fed were diminished by comments from FOMC member Mester, who said rates would still have to rise. A surprise 50bps hike from the New Zealand central bank also showed that the tightening cycle has not yet run its course. Risk appetite has drained away as markets approach this week's key US data, namely ADP payrolls and then non-farms on Friday. After the big gains that ended Q1, it is not surprising to see stocks slow their advances, though they have yet to go into reverse. Aside from the ADP data today, the ISM services PMI is also published. 

    image.png.1deee88f0647c89a4747abc11b5cbf

  11. On 24/03/2023 at 13:05, gbPi said:

    Request for stock coverage.

    A.P.Moller-Maersk ASADR

    NASDAQ 

    Share Dealing

    Ticker = AMKBY

    Country of stock Denmark (issue?)

    Market Cap     272Bn

    Hi @gbPi

    Thanks for reaching out. 

    We do not offer Denmark stocks on share dealing accounts. Thank you, OfentseIG

  12. On 01/04/2023 at 15:53, Day3 said:

    Hi, please add the following ticker for trading asap:

    Name Of Stock - Caleminder Inc.

    Name of Stock Exchange - NASD

    Leverage or share dealing - Share dealing

    Ticker - $CMND

    Market Cap - $3m

    Hi @Day3

    We are unable to offer stocks listed on the Canadian Securities Exchange on the share dealing account. All the best, OfentseIG

  13. Hi All, @greenscorpio1000 @blackjackbob

    Thanks for reaching out. We apologize for the service you received before getting a response from IG. At IG we regularly complete account checks to ensure that our clients have the most appropriate trading account for their circumstances. To do this, there is certain information that we need to update in our system every so often. This is to make certain we remain complaint in accordance with regulations/regulators governing IG. 

    If you still need more information or clarity, please reach out to helpdesk.uk@ig.com 

    Thanks, 

    OfentseIG 

  14. 13 hours ago, FoopThePoofer said:

    Tried to withdraw money on 4/1 to a verified visa debit card, but I can't see the money anywhere. Do I have to wait until the regular work week to see it? 

    Hi @FoopThePoofer

    Card payments take 2-5 working days until it reflects in your bank account. If the payment was approved today, you should receive the funds anytime from Tuesday to Friday. 

    All the best, OfentseIG

    • Like 1
  15. 2 hours ago, Leonard said:

    Can you tell me why certain company shares are shown but not available for trading on the IG website? eg Prospect Resources (PSC)

    Hi @Leonard

    Thanks for reaching out. 

    The restriction can be temporary. We can sometimes disable trading on some products due to certain reasons such as corporate news or regulations.

    Thank you, OfenseIG 

  16. The first calm weekend in about a month was shattered by news of the surprise OPEC+ production cut. The organisation will cut around 1.16 million barrels, in response to declining prices. WTI and Brent surged in overnight trading, though both failed to hold early highs. Goldman Sachs raised its forecast for year-end to $95 for Brent, and other analysts argued that OPEC+ was attempting to put a floor under prices to stop further declines. After a strong end to Q1, the new quarter began on a more mixed footing, with losses in Hong Kong countering gains for the ASX 200 and the Nikkei. If this production cut results in a sustained rise for energy prices then it will bring inflation to the fore again, after a week in which it seemed that price growth was beginning to ease. Final PMIs around the globe are released today, with the US ISM manufacturing number out in the afternoon, though it seems oil will command all the attention today. 

    image.png.1deee88f0647c89a4747abc11b5cbf

  17. On 30/03/2023 at 11:28, Gaz101 said:

    On my workspace, when I open multiple tabs it seems to be minimising them. so I can't see them. (see image 1)

    It's never done this before, I want everything to stay wide as always has done before so I can easily click through. (See image 2) Where is the setting for this and how to I change it!! Thanks!

     

    Screenshot 2023-03-30 at 11.25.43.png

    Screenshot 2023-03-30 at 11.27.42.png

    Hi @Gaz101

    Thanks for reaching out. 

    We are currently trying to find a fix for this issue. If you need to reach out to check the progress of this incident, please quote the incident number INC0700862 as reference. 

    Thank you, OfentseIG

  18. 19 hours ago, Hanlon81 said:

    Hi.

    I'm enquiring about longer dated call options on silver. I see that the latest I can purchase right now are out to September (28th Aug expiry). Do you sell Leaps? I can't find any. Also can I roll over my options contracts to a later date? I haven't found any mention of the ability to do this anywhere on the site. 

    Thanks.

    Sean

    Hi @Hanlon81

    Thanks for reaching out. 

    We do not offer Leaps. Rollovers are also not offered on options. We only offer rollover on forwards or future contracts. 

    Thanks, OfentseIG

  19. 1 hour ago, valomot01 said:

    This is annoying since I resize the charts manually, and they are resized when I click the buy or sell button to preview orders.

    Is there any way to turn this off?

    Hi @valomot01

    Thanks for reaching out. 

    We would like to help but your query remains unclear. Could you please paste screenshots to help us understand what you meant by charts resizing themselves. 

    Thanks, 

    OfentseIG

×
×
  • Create New...
us