Click here to Skip to main content
15,917,176 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.

 
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 
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 
I am using something I found from
http://www.mssqltips.com/sqlservertip/3272/example-using-web-services-with-sql-server-integration-services/

[
"https://openexchangerates.org/api/latest.json?app_id=04f370f1bf4a4ea7a386ade58f07d0e5"
]
myConnection.DownloadFile(Dts.Connections["OpenExchCurrency.json"].ConnectionString, true);

Have SQL 2012 so had to implement reading the JSON file format as a flat file, pretty simplistic it just ignores the first six lines of the file and starts with (example data)
"AED": 3.672761,
"AFN": 67.383551,
Once I read that into a table, parse (known 3 character positional for currency code, ":" to "," for value) for the four currencies I care for for the day. Added an AVG30Days and an AVGPeriod calculation. Then as someone else pointed out, I used a web based CSV request to get and add history back as far as my data goes. from before I had this option.
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 
GeneralRe: LEGACY Pin
kmoorevs30-Oct-17 6:22
kmoorevs30-Oct-17 6:22 
GeneralRe: LEGACY Pin
Slacker00730-Oct-17 2:47
professionalSlacker00730-Oct-17 2:47 
GeneralRe: LEGACY Pin
den2k8830-Oct-17 3:08
professionalden2k8830-Oct-17 3:08 

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.