From a7dc6acb52f4f94a70b023e8563fbe03a52f5d0d Mon Sep 17 00:00:00 2001 From: Christian Boynton Date: Sat, 27 Jul 2013 23:58:57 -0700 Subject: [PATCH] Updated Ticker URL for MtGox --- BTCPrice/DKGAppDelegate.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BTCPrice/DKGAppDelegate.m b/BTCPrice/DKGAppDelegate.m index 55cf302..6daddc5 100644 --- a/BTCPrice/DKGAppDelegate.m +++ b/BTCPrice/DKGAppDelegate.m @@ -8,6 +8,7 @@ #import "DKGAppDelegate.h" +#define kTickerApi @"https://data.mtgox.com/api/1/BTC%@/ticker" #define kDonationAddress @"1Price4EGW8R59auccATvEwCFAhXYBML6V" #define kDefaultsDisplay @"display" #define kDefaultsCurrency @"currency" @@ -142,7 +143,7 @@ -(void)update NSInteger i = [[NSUserDefaults standardUserDefaults] integerForKey:kDefaultsCurrency]; i = MAX(0, MIN(i, _currencySubmenu.itemArray.count - 1)); currency = [[_currencySubmenu itemAtIndex:i] title]; - NSURL* URL = [NSURL URLWithString:[NSString stringWithFormat:@"https://mtgox.com/api/1/BTC%@/ticker", currency]]; + NSURL* URL = [NSURL URLWithString:[NSString stringWithFormat:kTickerApi, currency]]; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ NSData* data = [NSData dataWithContentsOfURL:URL]; dispatch_async(dispatch_get_main_queue(), ^{