Need code and also a clear explanation for every line
Problem Statement:
------------------
A Currency broker company has asked us to build a system that notifies them when a currency pair rate reaches the target rate. User configures the currency pair and target rate.
The URL to get the Rates in XML form: "http://rates.fxcm.com/RatesXML"
Example of the rate:
<Rate Symbol="EURUSD">
<Bid>1.38022</Bid>
<Ask>1.38042</Ask>
<High>1.38266</High>
<Low>1.37634</Low>
<Direction>0</Direction>
<Last>10:42:43</Last>
</Rate>
Here "Bid" is the current rate. "Ask" is the suggested sell rate. "High" is day high, "Low" is day low, "Direction" is 1=>up, -1=>down, 0=>no change compared to last rate, and "Last" is the time for last tick.
Design considerations:
----------------------
1. You will need a parser to parse the XML. There are several examples online.
2. Start with hard coded user configuration. For example. Pair: EURUSD, Target rate: 1.381
3. Make it user entry once you have working code.
4. You will periodically check the rates, consider using a schedular.
4. For notification, we will assume that there is a system that will be called to notify users. You only display it on the screen if target has been reached.
8 years ago
30
- Law 421 Week 3 Individual Assignment: Breach of Contract
- Explain why there is an inverse relationship between the price of bonds and the relevant interest rate. Explain the effect of each of the following upon interest rates and upon the price of bonds:
- APA - 2 Paragraph Help - Need in 2 hours
- Small fleet managers must wear many “hats”. How can this affect the fleet safety program for a small fleet? Describe negative and positive potential impact.
- FILM 100 hw assignment 5
- Power Point
- BSHS 452 Week 2 Learning Team Assignment Assessment Process and Needs Problem Statement
- english essay
- Policy Advocacy Presentation
- Diagram