All URIs are relative to https://mgmtapi.geins.io
Method | HTTP request | Description |
---|---|---|
getMarketById | GET /API/Market/{marketId} | Get a specific market |
listMarkets | GET /API/Market/List | Gets a list of all markets |
EnvelopeMarketModelsMarket getMarketById(marketId, marketIdType)
Get a specific market
// Import classes:
//import org.openapitools.client.api.MarketApi;
MarketApi apiInstance = new MarketApi();
String marketId = null; // String | The id of the market to get.
Integer marketIdType = null; // Integer | The type of market id supplied. See {Market.Models.MarketIdType} for valid options.
try {
EnvelopeMarketModelsMarket result = apiInstance.getMarketById(marketId, marketIdType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarketApi#getMarketById");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
marketId | String | The id of the market to get. | [default to null] |
marketIdType | Integer | The type of market id supplied. See {Market.Models.MarketIdType} for valid options. | [optional] [default to null] [enum: 0, 1] |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
MarketModelsMarket listMarkets()
Gets a list of all markets
// Import classes:
//import org.openapitools.client.api.MarketApi;
MarketApi apiInstance = new MarketApi();
try {
MarketModelsMarket result = apiInstance.listMarkets();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MarketApi#listMarkets");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml