Margin Requirements

Python Web Scraping: Need help writing this code without repeating it 26 times

I'm writing this web scraping program that takes the forex retail trading sentiment from IG Markets and displays it in the console. Here's the code I got so far:
import bs4, requests def getIGsentiment(pairUrl): res = requests.get(pairUrl) res.raise_for_status() soup = bs4.BeautifulSoup(res.text, 'html.parser') elems ='.price-ticket__sentiment') return elems[0].get_text(" ", strip = True) retail_positions = getIGsentiment('') print ('EUUSD: ' + retail_positions[0:32].rstrip() + '.')) retail_positions = getIGsentiment('') print ('EUCHF: ' + retail_positions[0:32].rstrip() + '.')) 
This code is for 2 pairs, however, I need the output for 26 pairs and I don't want to type the url 26 times.
Is there a way to do this? I was thinking lists or dictionaries but don't know where to start.
BTW, I'm new to programming, I just read Automate the boring stuff up to the web scraping chapter and that's how I wrote this.
Thank you.

EDIT: I got it
pair_list = ['eur-chf', 'eur-aud', 'eur-jpy'] for i in range(len(pair_list)): retail_positions = getIGsentiment('' + (pair_list[i])) pair = pair_list[i] print(pair, retail_positions[0:32].rstrip() + '.')

submitted by Bad_Lieutenant702 to learnpython [link] [comments]

How to Trade EUR/USD: Best Methods! - YouTube Live EURUSD & USD JPY & GBPUSD H1 & M5 (Forex Live Forecast) Forex Live Stream EUR/USD USD/JPY - YouTube Live  EUR/JPY Coming Week Movement  Forex Technical ... 5min scalping strategy on Tradingview USD/JPY & EUR/USD ... Live Forex Signals Forecast EURUSD & USD JPY & GBPUSD H1 ... How To Trade USD/JPY  Forex Trading Tips 👍 - YouTube 1 Hour Breakout USD/JPY Open Breakout Strategy 🖖 - YouTube EUR/USD Technical Analysis for May 15, 2020 by FXEmpire Forex Video: The EUR/JPY Break Out Looks Constructive

trendanalysis shadowingthebigboys eurjpy jpy trading forex I am looking at a short on this EJ #shadowingthebigboys #trading #forex If you like my analysis and it helped you ,do give me a thumbs ups on tradingview! 🙏 And if you would like to show further support for me, you can gift me some coins on tradingview! 😁 Thank you! Everything you need to keep informed about Correlation Forex Trading. Check FXStreet's high quality resources. EUR JPY (Euro / Japanischer Yen) Der Euro gegen den japanischen Yen. Der Yen ist eine historisch niedrig verzinsliche Währung, die Händler dazu veranlasst, billig in JPY zu leihen, um höher verzinsliche Währungen, einschließlich EUR, zu kaufen. Aus diesem Grund reagiert das Paar sensibel auf die Schwankungen des Stimmungsumfelds auf ... EUR/USD extends recovery moves from last Wednesday’s top. Normal RSI conditions suggest the continuation of the recent upside. 200-HMA offers additional support, 1.1860 can challenge bulls ... Consulta la lista delle azioni con più volatilità sulla nostra sofisticata piattaforma finanziaria. Scopri le società che ultimamente si sono mosse di più. Many forex traders consider US brokers to be a sample of reliable and quality forex trading. Based on these assumptions, big investors prefer transatlantic brokers working in the forex market for a long time. Whether this makes sense or not, each trader decides for himself; however, US forex regulators, such as CFTC, assign to forex brokers USA quality status and guarantee a broker's ... Forex trading involves significant risk of loss and is not suitable for all investors. Full Disclosure. Spot Gold and Silver contracts are not subject to regulation under the U.S. Commodity Exchange Act. *Increasing leverage increases risk. GAIN Capital Group LLC (dba 135 US Hwy 202/206 Bedminster NJ 07921, USA. GAIN Capital Group ... The EUR has generally struggled versus USD during the relative tightening of Euro area regulatory burdens versus peers in the US.” “If we assume that MIFID II is rolled back and that 3M EUR/USD hedge costs remain as low as currently, we make the case that >1.20 readings in EUR/USD could be on the cards.” Informieren Sie sich über die neuesten Ideen und Prognosen für Euro / Japanischer Yen von unseren Top-Autoren - sie teilen Vorhersagen und technische Perspektiven des Marktes. EUR JPY (Euro / Japanese Yen) The Euro vs. the Japanese Yen. The Yen is a historically low-yielding currency, influencing traders to borrow cheaply in JPY to purchase higher-yielding currencies, including EUR. Because of this the pair is sensitive to broad-based market sentiment trend swings. Volatility may be found in news related to the Eurozone debt crisis and from the Bank of Japan’s ...

[index] [13879] [14273] [3321] [20986] [19975] [17962] [1112] [23846] [25739] [15171]

How to Trade EUR/USD: Best Methods! - YouTube

Product Order Form GRAND PACK INCLUDE ALL PRODUCTS LICENSE VALID UNTIL END OF 2022 MASTER PRIVATE SIGNALS + CRONOS PACK +... In This video I explained a lot about 5min scalping charts Naked Forex trading style. Website: Buy my new KouLeefx book on Amazon https:... Forex Streams Live EUR/USD USD/JPY Get indicators at OR Donate BTC: 1N33L96VCQq4GNyW5dZYhnZmVkmrzF57iA For educational purposes only. Be saf... EUR/USD USD/JPY M5 and H1 timeline frame chart via forecast buy/sell signals Consider up - Lasted Red arrow appears in 5 min and same in 1hr. Means a strong buy signal! Consider down - Lasted ... We analyzed several markets such as EUR/JPY, USD/JPY, Gold, GBP/USD, EUR/USD, USD/CAD and Crude Oil. Join Jeremy for future live US Opening Bell webinars here: #news Trading the USD/JPY Currency Pair PLEASE LIKE AND SHARE THIS VIDEO SO WE CAN DO MOR... Live Forex Trading & Chart Analysis - NY Session July 30, 2020 Conquer Trading & Investing 733 watching Live now S&P 500 Technical Analysis for July 30, 2020 by FXEmpire - Duration: 1:01. 1 Hour Trading Strategy In Forex With USDJPY - Asian Session. PLEASE LIKE AND SHARE TH... #EURJPY Coming Week Movement Forex Technical Analysis fxchandru Website : 👉7904483540👈 Telegram : *****... #forex #forexlifestyle #forextrader Want to join the A1 Trading Team? See trades taken by our top trading analysts, join our live trading chatroom, and acces...