Skip to content

Commit 5516418

Browse files
committed
fix(sdk-java): align markdown tables in client and settings docs
1 parent 8f6db00 commit 5516418

2 files changed

Lines changed: 26 additions & 26 deletions

File tree

sdk/java/client.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,15 @@ response.saveToFile(Path.of("aapl.json")); // cache the raw body
297297

298298
Everything the SDK throws is a `MarketDataException`. It is a **sealed** hierarchy — the seven subtypes below are the complete set, so you can branch on them exhaustively and the compiler will tell you if a future major version adds one. Each exception carries support context: `getStatusCode()`, `getRequestId()`, `getRequestUrl()`, and `getSupportInfo()`.
299299

300-
| Subtype | When it's thrown |
301-
|---|---|
302-
| `AuthenticationError` | Missing or invalid token (HTTP 401) |
303-
| `BadRequestError` | Invalid parameters (HTTP 4xx) |
304-
| `NotFoundError` | The resource doesn't exist (HTTP 404) |
305-
| `RateLimitError` | Quota exceeded (HTTP 429); see `getRetryAfter()` |
306-
| `ServerError` | API-side failure (HTTP 5xx) |
307-
| `NetworkError` | Connection failure or timeout |
308-
| `ParseError` | The response could not be decoded |
300+
| Subtype | When it's thrown |
301+
|-----------------------|--------------------------------------------------|
302+
| `AuthenticationError` | Missing or invalid token (HTTP 401) |
303+
| `BadRequestError` | Invalid parameters (HTTP 4xx) |
304+
| `NotFoundError` | The resource doesn't exist (HTTP 404) |
305+
| `RateLimitError` | Quota exceeded (HTTP 429); see `getRetryAfter()` |
306+
| `ServerError` | API-side failure (HTTP 5xx) |
307+
| `NetworkError` | Connection failure or timeout |
308+
| `ParseError` | The response could not be decoded |
309309

310310
Async calls surface the same exceptions through the `CompletableFuture` (wrapped in a `CompletionException`); the sync wrappers unwrap them so you catch the cause directly.
311311

sdk/java/settings.mdx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ import com.marketdata.sdk.DateFormat;
8080
client.stocks().dateFormat(DateFormat.TIMESTAMP);
8181
```
8282

83-
| Value | Description |
84-
|---|---|
85-
| `UNIX` | Unix timestamp in seconds (e.g. `1609362000`) |
86-
| `TIMESTAMP` | ISO-8601 timestamp (e.g. `2020-12-30 16:00:00 -05:00`) |
87-
| `SPREADSHEET` | Excel/Sheets serial date number (e.g. `44195.66667`) |
83+
| Value | Description |
84+
|---------------|--------------------------------------------------------|
85+
| `UNIX` | Unix timestamp in seconds (e.g. `1609362000`) |
86+
| `TIMESTAMP` | ISO-8601 timestamp (e.g. `2020-12-30 16:00:00 -05:00`) |
87+
| `SPREADSHEET` | Excel/Sheets serial date number (e.g. `44195.66667`) |
8888

8989
For more details, see the [API Date Format documentation](/api/universal-parameters/date-format).
9090

@@ -99,11 +99,11 @@ import com.marketdata.sdk.Mode;
9999
client.stocks().mode(Mode.CACHED);
100100
```
101101

102-
| Value | Description |
103-
|---|---|
104-
| `LIVE` | Real-time data (paid plans) |
105-
| `DELAYED` | 15+ minute delayed data |
106-
| `CACHED` | Cached data — lower cost per request |
102+
| Value | Description |
103+
|-----------|--------------------------------------|
104+
| `LIVE` | Real-time data (paid plans) |
105+
| `DELAYED` | 15+ minute delayed data |
106+
| `CACHED` | Cached data — lower cost per request |
107107

108108
For more details, see the [API Data Mode documentation](/api/universal-parameters/mode).
109109

@@ -169,10 +169,10 @@ csv.saveToFile(Path.of("quotes.csv"))
169169

170170
## Environment Variables Reference
171171

172-
| Variable | Purpose | Default |
173-
|--------------------------|-------------------------------|------------------------------|
174-
| `MARKETDATA_TOKEN` | API authentication token | _(none)_ |
175-
| `MARKETDATA_BASE_URL` | API base URL | `https://api.marketdata.app` |
176-
| `MARKETDATA_API_VERSION` | API version | `v1` |
177-
| `MARKETDATA_DATE_FORMAT` | Default date format | _(API default)_ |
178-
| `MARKETDATA_LOGGING_LEVEL` | SDK logging level (`java.util.logging`) | _(consumer default)_ |
172+
| Variable | Purpose | Default |
173+
|----------------------------|-----------------------------------------|------------------------------|
174+
| `MARKETDATA_TOKEN` | API authentication token | _(none)_ |
175+
| `MARKETDATA_BASE_URL` | API base URL | `https://api.marketdata.app` |
176+
| `MARKETDATA_API_VERSION` | API version | `v1` |
177+
| `MARKETDATA_DATE_FORMAT` | Default date format | _(API default)_ |
178+
| `MARKETDATA_LOGGING_LEVEL` | SDK logging level (`java.util.logging`) | _(consumer default)_ |

0 commit comments

Comments
 (0)