Click here to Skip to main content
15,896,489 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Currency Rates Pin
OriginalGriff30-Oct-17 5:00
mveOriginalGriff30-Oct-17 5:00 
GeneralRe: Currency Rates Pin
Richard MacCutchan30-Oct-17 4:14
mveRichard MacCutchan30-Oct-17 4:14 
GeneralRe: Currency Rates Pin
Jacquers30-Oct-17 4:49
Jacquers30-Oct-17 4:49 
GeneralRe: Currency Rates Pin
ZurdoDev30-Oct-17 5:05
professionalZurdoDev30-Oct-17 5:05 
GeneralRe: Currency Rates Pin
Herbie Mountjoy2-Nov-17 4:05
professionalHerbie Mountjoy2-Nov-17 4:05 
GeneralRe: Currency Rates Pin
R. Giskard Reventlov30-Oct-17 5:29
R. Giskard Reventlov30-Oct-17 5:29 
GeneralRe: Currency Rates Pin
ZurdoDev30-Oct-17 5:39
professionalZurdoDev30-Oct-17 5:39 
GeneralRe: Currency Rates Pin
Nagy Vilmos30-Oct-17 5:53
professionalNagy Vilmos30-Oct-17 5:53 
What are the rates for?
Indicative or charging?

If you're going to use a rate from an API, make sure that you know the margin to apply. A lot of the time you'll get a spot price, aka mid price. You never trade at spot always at the buy/sell which will be off by a small margin, sometimes it's percentage, others use fixed points.
Pretend GBP-EUR rate is 1.10. A good margin would be +/-4 bp 1.06 / 1.14.

Also take into account reciprocal rates. from the above GBP-EUR would be 0.909090909.... However you apply it you get rounding errors.

FX Rates are bloody awful. If you want rates for anything other than indicative, you need the correct buy / rates and you should always just divide in the rate to reverse directions.

tl;dr;
FX is Evil.
veni bibi saltavi

GeneralRe: Currency Rates Pin
ZurdoDev30-Oct-17 6:03
professionalZurdoDev30-Oct-17 6:03 
GeneralRe: Currency Rates Pin
Jeremy Falcon30-Oct-17 8:15
professionalJeremy Falcon30-Oct-17 8:15 
GeneralRe: Currency Rates Pin
ScottotheUnwise31-Oct-17 2:47
ScottotheUnwise31-Oct-17 2:47 
GeneralRe: Currency Rates Pin
ZurdoDev31-Oct-17 2:54
professionalZurdoDev31-Oct-17 2:54 
GeneralRe: Currency Rates Pin
ormonds31-Oct-17 11:00
ormonds31-Oct-17 11:00 
GeneralRe: Currency Rates Pin
ZurdoDev31-Oct-17 14:28
professionalZurdoDev31-Oct-17 14:28 
GeneralRe: Currency Rates Pin
Robert/Not The Pirate1-Nov-17 21:30
professionalRobert/Not The Pirate1-Nov-17 21:30 
GeneralRe: Currency Rates Pin
Member 110156841-Nov-17 21:42
Member 110156841-Nov-17 21:42 
GeneralRe: Currency Rates Pin
Gerry Schmitz2-Nov-17 14:22
mveGerry Schmitz2-Nov-17 14:22 
GeneralJust been filling out a "store survey" online Pin
OriginalGriff30-Oct-17 2:07
mveOriginalGriff30-Oct-17 2:07 
GeneralRe: Just been filling out a "store survey" online Pin
megaadam30-Oct-17 2:41
professionalmegaadam30-Oct-17 2:41 
GeneralCCC Pin
The pompey29-Oct-17 23:39
The pompey29-Oct-17 23:39 
GeneralRe: CCC Pin
PeejayAdams30-Oct-17 0:31
PeejayAdams30-Oct-17 0:31 
GeneralRe: CCC Pin
The pompey30-Oct-17 0:38
The pompey30-Oct-17 0:38 
GeneralRe: CCC Pin
PeejayAdams30-Oct-17 1:09
PeejayAdams30-Oct-17 1:09 
RantLEGACY Pin
AlphaDeltaTheta29-Oct-17 23:20
AlphaDeltaTheta29-Oct-17 23:20 
GeneralRe: LEGACY Pin
raddevus30-Oct-17 2:41
mvaraddevus30-Oct-17 2:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.