Skip to main content

Columns

The columns parameter is used to limit the results of any endpoint to only the columns you need.

Parameter

Use Example

https://api.marketdata.app/v1/stocks/quotes/AAPL/?columns=ask,bid https://api.marketdata.app/v1/stocks/quotes/AAPL/?columns=-mid

Response Example

{ "ask": [152.14], "bid": [152.12] }

Values

string

Use a list of columns names separated by commas to limit the response to just the columns requested. You may also use a minus sign in front of the column name to exclude one or more columns from the default API output.

caution

You can not include and exclude columns in the same API call. The columns parameter will be ignored if both postive and negative attributes values are used in the same API call.