All URIs are relative to https://api.bybit.com
Method | HTTP request | Description |
---|---|---|
commonAnnouncements | GET /v2/public/announcement | Get Bybit OpenAPI announcements in the last 30 days in reverse order. |
commonGetLcp | GET /v2/private/account/lcp | Query LCP info. |
commonGetTime | GET /v2/public/time | Get bybit server time. |
-(NSURLSessionTask*) commonAnnouncementsWithCompletionHandler:
(void (^)(NSObject* output, NSError* error)) handler;
Get Bybit OpenAPI announcements in the last 30 days in reverse order.
SWGCommonApi*apiInstance = [[SWGCommonApi alloc] init];
// Get Bybit OpenAPI announcements in the last 30 days in reverse order.
[apiInstance commonAnnouncementsWithCompletionHandler:
^(NSObject* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGCommonApi->commonAnnouncements: %@", error);
}
}];
This endpoint does not need any parameter.
NSObject*
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) commonGetLcpWithSymbol: (NSString*) symbol
completionHandler: (void (^)(NSObject* output, NSError* error)) handler;
Query LCP info.
NSString* symbol = @"symbol_example"; // Contract type
SWGCommonApi*apiInstance = [[SWGCommonApi alloc] init];
// Query LCP info.
[apiInstance commonGetLcpWithSymbol:symbol
completionHandler: ^(NSObject* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGCommonApi->commonGetLcp: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
symbol | NSString* | Contract type |
NSObject*
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) commonGetTimeWithCompletionHandler:
(void (^)(NSObject* output, NSError* error)) handler;
Get bybit server time.
SWGCommonApi*apiInstance = [[SWGCommonApi alloc] init];
// Get bybit server time.
[apiInstance commonGetTimeWithCompletionHandler:
^(NSObject* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGCommonApi->commonGetTime: %@", error);
}
}];
This endpoint does not need any parameter.
NSObject*
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]