TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2015 |
Maintained by Unclaimed.
Objective-C implementation of Cryptsy API for iOS.
ACDCryptsyAPI provides a very simple interface into the Cryptsy API for use in iOS applications.
Only a single method is exposed:
- (void)apiQuery:(NSString *)method params:(NSDictionary *)params success:(CryptsyAPISuccessBlock)success error:(CryptsyAPIErrorBlock)error;
ACDCryptsyAPI takes provides the private methods required to properly sign the authenticated methods provided by Cryptsy.
ACDCryptsyAPI *api = [[ACDCryptsyAPI alloc] initWithApiKey:@"API_KEY" andSecret:@"SECRET_KEY"];
[api apiQuery:@"markettrades" params:@{@"marketid": @123} success:^(id response) {
// success
NSLog(@"%@", response);
} error:^(NSError *error) {
// error
NSLog(@"%@", [error localizedDescription]);
}];
ACDCryptsyAPI *api = [[ACDCryptsyAPI alloc] initWithApiKey:@"API_KEY" andSecret:@"SECRET_KEY"];
[api apiQuery:@"getinfo" params:nil success:^(id response) {
// success
NSLog(@"%@", response);
} error:^(NSError *error) {
// error
NSLog(@"%@", [error localizedDescription]);
}];
This is a very early version of ACDCryptsyAPI. It works fine, but could be tuned to provide direct access methods (eg. getInfo, getMarketTrades). Additionally support for caching, network detection, etc. will eventually be added. Please feel free to contact us if you have a specific request for the API.
ACDCryptsyAPI is free to use, but if you find this library to be valuable, please make a donation to continue its development.