jihopark / plainX-turkey

2 stars 0 forks source link

calculate currency rate bug #33

Closed jihopark closed 8 years ago

loong commented 8 years ago

From my side or your side?

jihopark commented 8 years ago

for some reason i cannot reproduce it. i think it is temporary server error. i'll keep on observing.

jihopark commented 8 years ago

@mindworker mushroom gives me

     [ { Country: 'Hong Kong', Code: 'HKD', Rate: 7.75015 },
             { Country: 'China', Code: 'CNY', Rate: 0 },
             { Country: 'United States', Code: 'USD', Rate: 0 },
             { Country: 'Europe', Code: 'EUR', Rate: 0 },
             { Country: 'Australia', Code: 'AUD', Rate: 0 },
             { Country: 'Cambodia', Code: 'KHR', Rate: 0 },
             { Country: 'India', Code: 'INR', Rate: 0 },
             { Country: 'Indonesia', Code: 'IDR', Rate: 0 },
             { Country: 'Japan', Code: 'JPY', Rate: 0 },
             { Country: 'Malaysia', Code: 'MYR', Rate: 4.2481 },
             { Country: 'Philippines', Code: 'PHP', Rate: 0 },
             { Country: 'Singapore', Code: 'SGD', Rate: 0 },
             { Country: 'South Korea', Code: 'KRW', Rate: 1175.694946 },
             { Country: 'Switzerland', Code: 'CHF', Rate: 0 },
             { Country: 'Taiwan', Code: 'NTD', Rate: 0 },
             { Country: 'Thailand', Code: 'THB', Rate: 0 },
             { Country: 'United Kingdom', Code: 'GBP', Rate: 0.65889 },
             { Country: 'Vietnam', Code: 'VND', Rate: 0 } ],
loong commented 8 years ago

Sorry, I flushed the fx rates to test some changes on the fxupdate crontab. Should have normal data now. I'll continue it on my separate dev database.

Close the issue if everything is fine for now.

jihopark commented 8 years ago

still not working @mindworker

loong commented 8 years ago

Can you give me the request url, so I can reproduce it?

jihopark commented 8 years ago

https://plainexchange.herokuapp.com/api/v1/offer/make?Sell=USD&Buy=HKD&Page=0