Package com.qtsurfer.api.client.model
Class Account
java.lang.Object
com.qtsurfer.api.client.model.Account
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class Account
extends Object
Your identity and tier limits. No database call behind this one — safe to fetch on every page load. Live usage against these limits is a separate resource, `GET /account/usage`, deliberately: usage changes on every upload/execution and costs a query to compute, this one doesn't.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this Account object is equal to o.getLinks()Get linksMaximum size, in bytes, of a single dataset version as stored, that is the `bytes` of its ready version.Maximum number of active datasets your tier allows.Maximum number of strategy executions (and sweeps) you can have running at the same time through the API.Maximum length, in hours, of the time range of one dataset import from an exchange.Maximum length, in days, of the time range of a backtest on one of your own datasets.Largest full grid, in parameter combinations, a sweep may run with the `grid` sampler.Maximum combined storage, in bytes, across every dataset, strategy-execution signal, and registered strategy on your account — one shared pool, not a separate cap per resource type, since they all compete for the same underlying storage.What your API key may do, as a map from a resource to the actions allowed on it.getTier()Your current subscription tier.Your account id — the JWT `sub` claim.inthashCode()links(AccountLinks links) maxDatasetBytes(Long maxDatasetBytes) maxDatasets(Integer maxDatasets) maxExecute(Integer maxExecute) maxImportRangeHours(Integer maxImportRangeHours) maxRangeDays(Integer maxRangeDays) maxSweepCartesian(Integer maxSweepCartesian) maxTotalStorageBytes(Long maxTotalStorageBytes) putScopesItem(String key, List<String> scopesItem) voidsetLinks(AccountLinks links) voidsetMaxDatasetBytes(Long maxDatasetBytes) voidsetMaxDatasets(Integer maxDatasets) voidsetMaxExecute(Integer maxExecute) voidsetMaxImportRangeHours(Integer maxImportRangeHours) voidsetMaxRangeDays(Integer maxRangeDays) voidsetMaxSweepCartesian(Integer maxSweepCartesian) voidsetMaxTotalStorageBytes(Long maxTotalStorageBytes) voidvoidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_USER_ID
- See Also:
-
JSON_PROPERTY_TIER
- See Also:
-
JSON_PROPERTY_SCOPES
- See Also:
-
JSON_PROPERTY_MAX_EXECUTE
- See Also:
-
JSON_PROPERTY_MAX_RANGE_DAYS
- See Also:
-
JSON_PROPERTY_MAX_SWEEP_CARTESIAN
- See Also:
-
JSON_PROPERTY_MAX_IMPORT_RANGE_HOURS
- See Also:
-
JSON_PROPERTY_MAX_DATASETS
- See Also:
-
JSON_PROPERTY_MAX_DATASET_BYTES
- See Also:
-
JSON_PROPERTY_MAX_TOTAL_STORAGE_BYTES
- See Also:
-
JSON_PROPERTY_LINKS
- See Also:
-
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
userId
-
getUserId
Your account id — the JWT `sub` claim.- Returns:
- userId
-
setUserId
-
tier
-
getTier
Your current subscription tier.- Returns:
- tier
-
setTier
-
scopes
-
putScopesItem
-
getScopes
What your API key may do, as a map from a resource to the actions allowed on it. Names are lower case: `{ \"backtests\": [\"read\", \"write\", \"execute\"], \"exchanges\": [\"read\"] }`. A scope is a resource and an action: a resource is listed only with at least one action, and a key with no scope is `{}`. `GET /account` and `POST /auth/token` return the same map for the same key. An operation that needs a scope the key does not carry is answered `403` with the code `insufficient_scope`, and says which scope it needed.- Returns:
- scopes
-
setScopes
-
maxExecute
-
getMaxExecute
Maximum number of strategy executions (and sweeps) you can have running at the same time through the API. Starting one past this number is answered with `429`, whose message carries the same number. The value already includes any API allowance your plan has.- Returns:
- maxExecute
-
setMaxExecute
-
maxRangeDays
-
getMaxRangeDays
Maximum length, in days, of the time range of a backtest on one of your own datasets.- Returns:
- maxRangeDays
-
setMaxRangeDays
-
maxSweepCartesian
-
getMaxSweepCartesian
Largest full grid, in parameter combinations, a sweep may run with the `grid` sampler. A grid with more combinations is refused with `400`; the `random` and `lhs` samplers run only their `samples` and are not held to it.- Returns:
- maxSweepCartesian
-
setMaxSweepCartesian
-
maxImportRangeHours
-
getMaxImportRangeHours
Maximum length, in hours, of the time range of one dataset import from an exchange.- Returns:
- maxImportRangeHours
-
setMaxImportRangeHours
-
maxDatasets
-
getMaxDatasets
Maximum number of active datasets your tier allows.- Returns:
- maxDatasets
-
setMaxDatasets
-
maxDatasetBytes
-
getMaxDatasetBytes
Maximum size, in bytes, of a single dataset version as stored, that is the `bytes` of its ready version. For a CSV upload that is the converted file, not the file you upload, so estimate from the number of rows. The Datasets guide has the details.- Returns:
- maxDatasetBytes
-
setMaxDatasetBytes
-
maxTotalStorageBytes
-
getMaxTotalStorageBytes
Maximum combined storage, in bytes, across every dataset, strategy-execution signal, and registered strategy on your account — one shared pool, not a separate cap per resource type, since they all compete for the same underlying storage. See `GET /account/usage`'s `storageBytesUsed` for your current usage against this number.- Returns:
- maxTotalStorageBytes
-
setMaxTotalStorageBytes
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
Return true if this Account object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-