Class TokenizationApi
java.lang.Object
markets.alpaca.client.openapi.broker.api.TokenizationApi
Generated client for TokenizationApi operations.
This class is generated from the configured OpenAPI spec. Operation method Javadocs include OAS summaries, descriptions, parameters, return types, response details, and external documentation links when present in the spec.
Operations
getTokenizationRequestsBroker: List Tokenization RequestspostTokenizationCallbackMint: Confirm Tokenized Asset MintedpostTokenizationMintBroker: Mint a Tokenized AssetpostTokenizationRedeem: Redeem a Tokenized Asset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetTokenizationRequestsBroker(UUID accountId, String type, String status, String underlyingSymbol, TokenizationIssuer issuer, TokenizationNetwork network, OffsetDateTime after, OffsetDateTime before) List Tokenization Requests Retrieve tokenization requests for the account.okhttp3.CallgetTokenizationRequestsBrokerAsync(UUID accountId, String type, String status, String underlyingSymbol, TokenizationIssuer issuer, TokenizationNetwork network, OffsetDateTime after, OffsetDateTime before, ApiCallback<List<TokenizationRequest>> _callback) List Tokenization Requests (asynchronously) Retrieve tokenization requests for the account.okhttp3.CallgetTokenizationRequestsBrokerCall(UUID accountId, String type, String status, String underlyingSymbol, TokenizationIssuer issuer, TokenizationNetwork network, OffsetDateTime after, OffsetDateTime before, ApiCallback _callback) Build call for getTokenizationRequestsBrokergetTokenizationRequestsBrokerWithHttpInfo(UUID accountId, String type, String status, String underlyingSymbol, TokenizationIssuer issuer, TokenizationNetwork network, OffsetDateTime after, OffsetDateTime before) List Tokenization Requests Retrieve tokenization requests for the account.postTokenizationCallbackMint(UUID accountId, TokenizationMintCallback tokenizationMintCallback) Confirm Tokenized Asset Minted This endpoint is used by the issuer to confirm the minting of tokenized assets previously requested by the Authorized Participant.okhttp3.CallpostTokenizationCallbackMintAsync(UUID accountId, TokenizationMintCallback tokenizationMintCallback, ApiCallback<TokenizationRequest> _callback) Confirm Tokenized Asset Minted (asynchronously) This endpoint is used by the issuer to confirm the minting of tokenized assets previously requested by the Authorized Participant.okhttp3.CallpostTokenizationCallbackMintCall(UUID accountId, TokenizationMintCallback tokenizationMintCallback, ApiCallback _callback) Build call for postTokenizationCallbackMintpostTokenizationCallbackMintWithHttpInfo(UUID accountId, TokenizationMintCallback tokenizationMintCallback) Confirm Tokenized Asset Minted This endpoint is used by the issuer to confirm the minting of tokenized assets previously requested by the Authorized Participant.postTokenizationMintBroker(UUID accountId, TokenizationMintRequest tokenizationMintRequest) Mint a Tokenized Asset This endpoint is used by an Authorized Participant to request the minting of a tokenized asset.okhttp3.CallpostTokenizationMintBrokerAsync(UUID accountId, TokenizationMintRequest tokenizationMintRequest, ApiCallback<TokenizationMintResponse> _callback) Mint a Tokenized Asset (asynchronously) This endpoint is used by an Authorized Participant to request the minting of a tokenized asset.okhttp3.CallpostTokenizationMintBrokerCall(UUID accountId, TokenizationMintRequest tokenizationMintRequest, ApiCallback _callback) Build call for postTokenizationMintBrokerpostTokenizationMintBrokerWithHttpInfo(UUID accountId, TokenizationMintRequest tokenizationMintRequest) Mint a Tokenized Asset This endpoint is used by an Authorized Participant to request the minting of a tokenized asset.postTokenizationRedeem(UUID accountId, TokenizationRedeemRequest tokenizationRedeemRequest) Redeem a Tokenized Asset This endpoint is used by the tokenized asset issuer to confirm the redemption of tokens previously held in the Authorized Participant's wallet.okhttp3.CallpostTokenizationRedeemAsync(UUID accountId, TokenizationRedeemRequest tokenizationRedeemRequest, ApiCallback<TokenizationRedeemResponse> _callback) Redeem a Tokenized Asset (asynchronously) This endpoint is used by the tokenized asset issuer to confirm the redemption of tokens previously held in the Authorized Participant's wallet.okhttp3.CallpostTokenizationRedeemCall(UUID accountId, TokenizationRedeemRequest tokenizationRedeemRequest, ApiCallback _callback) Build call for postTokenizationRedeempostTokenizationRedeemWithHttpInfo(UUID accountId, TokenizationRedeemRequest tokenizationRedeemRequest) Redeem a Tokenized Asset This endpoint is used by the tokenized asset issuer to confirm the redemption of tokens previously held in the Authorized Participant's wallet.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
TokenizationApi
public TokenizationApi() -
TokenizationApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
getTokenizationRequestsBrokerCall
public okhttp3.Call getTokenizationRequestsBrokerCall(@Nonnull UUID accountId, @Nullable String type, @Nullable String status, @Nullable String underlyingSymbol, @Nullable TokenizationIssuer issuer, @Nullable TokenizationNetwork network, @Nullable OffsetDateTime after, @Nullable OffsetDateTime before, ApiCallback _callback) throws ApiException Build call for getTokenizationRequestsBroker- Parameters:
accountId- Account identifier. (required)type- Tokenization request type to be queried (optional)status- Tokenization request status to be queried (optional)underlyingSymbol- Underlying symbol of the tokenization requests to be queried (optional)issuer- Issuer of the tokenization requests to be queried (optional)network- Network of the tokenization requests to be queried (optional)after- The response will include only requests created after this timestamp (exclusive) (optional)before- The response will include only requests created before this timestamp (exclusive) (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response A list of tokenization requests - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
getTokenizationRequestsBroker
public List<TokenizationRequest> getTokenizationRequestsBroker(@Nonnull UUID accountId, @Nullable String type, @Nullable String status, @Nullable String underlyingSymbol, @Nullable TokenizationIssuer issuer, @Nullable TokenizationNetwork network, @Nullable OffsetDateTime after, @Nullable OffsetDateTime before) throws ApiException List Tokenization Requests Retrieve tokenization requests for the account. This endpoint may be used by the tokenized asset issuer or by an Authorized Participant (AP). The list can contain both mint and redeem requests.- Parameters:
accountId- Account identifier. (required)type- Tokenization request type to be queried (optional)status- Tokenization request status to be queried (optional)underlyingSymbol- Underlying symbol of the tokenization requests to be queried (optional)issuer- Issuer of the tokenization requests to be queried (optional)network- Network of the tokenization requests to be queried (optional)after- The response will include only requests created after this timestamp (exclusive) (optional)before- The response will include only requests created before this timestamp (exclusive) (optional)- Returns:
- List<TokenizationRequest>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response A list of tokenization requests - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
getTokenizationRequestsBrokerWithHttpInfo
public ApiResponse<List<TokenizationRequest>> getTokenizationRequestsBrokerWithHttpInfo(@Nonnull UUID accountId, @Nullable String type, @Nullable String status, @Nullable String underlyingSymbol, @Nullable TokenizationIssuer issuer, @Nullable TokenizationNetwork network, @Nullable OffsetDateTime after, @Nullable OffsetDateTime before) throws ApiException List Tokenization Requests Retrieve tokenization requests for the account. This endpoint may be used by the tokenized asset issuer or by an Authorized Participant (AP). The list can contain both mint and redeem requests.- Parameters:
accountId- Account identifier. (required)type- Tokenization request type to be queried (optional)status- Tokenization request status to be queried (optional)underlyingSymbol- Underlying symbol of the tokenization requests to be queried (optional)issuer- Issuer of the tokenization requests to be queried (optional)network- Network of the tokenization requests to be queried (optional)after- The response will include only requests created after this timestamp (exclusive) (optional)before- The response will include only requests created before this timestamp (exclusive) (optional)- Returns:
- ApiResponse<List<TokenizationRequest>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response A list of tokenization requests - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
getTokenizationRequestsBrokerAsync
public okhttp3.Call getTokenizationRequestsBrokerAsync(@Nonnull UUID accountId, @Nullable String type, @Nullable String status, @Nullable String underlyingSymbol, @Nullable TokenizationIssuer issuer, @Nullable TokenizationNetwork network, @Nullable OffsetDateTime after, @Nullable OffsetDateTime before, ApiCallback<List<TokenizationRequest>> _callback) throws ApiException List Tokenization Requests (asynchronously) Retrieve tokenization requests for the account. This endpoint may be used by the tokenized asset issuer or by an Authorized Participant (AP). The list can contain both mint and redeem requests.- Parameters:
accountId- Account identifier. (required)type- Tokenization request type to be queried (optional)status- Tokenization request status to be queried (optional)underlyingSymbol- Underlying symbol of the tokenization requests to be queried (optional)issuer- Issuer of the tokenization requests to be queried (optional)network- Network of the tokenization requests to be queried (optional)after- The response will include only requests created after this timestamp (exclusive) (optional)before- The response will include only requests created before this timestamp (exclusive) (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response A list of tokenization requests - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationCallbackMintCall
public okhttp3.Call postTokenizationCallbackMintCall(@Nonnull UUID accountId, @Nonnull TokenizationMintCallback tokenizationMintCallback, ApiCallback _callback) throws ApiException Build call for postTokenizationCallbackMint- Parameters:
accountId- Account identifier. (required)tokenizationMintCallback- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully confirmed minting of a tokenized asset. - 400 Bad request (e.g. failed to decode request body). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationCallbackMint
public TokenizationRequest postTokenizationCallbackMint(@Nonnull UUID accountId, @Nonnull TokenizationMintCallback tokenizationMintCallback) throws ApiException Confirm Tokenized Asset Minted This endpoint is used by the issuer to confirm the minting of tokenized assets previously requested by the Authorized Participant.- Parameters:
accountId- Account identifier. (required)tokenizationMintCallback- (required)- Returns:
- TokenizationRequest
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully confirmed minting of a tokenized asset. - 400 Bad request (e.g. failed to decode request body). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationCallbackMintWithHttpInfo
public ApiResponse<TokenizationRequest> postTokenizationCallbackMintWithHttpInfo(@Nonnull UUID accountId, @Nonnull TokenizationMintCallback tokenizationMintCallback) throws ApiException Confirm Tokenized Asset Minted This endpoint is used by the issuer to confirm the minting of tokenized assets previously requested by the Authorized Participant.- Parameters:
accountId- Account identifier. (required)tokenizationMintCallback- (required)- Returns:
- ApiResponse<TokenizationRequest>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully confirmed minting of a tokenized asset. - 400 Bad request (e.g. failed to decode request body). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationCallbackMintAsync
public okhttp3.Call postTokenizationCallbackMintAsync(@Nonnull UUID accountId, @Nonnull TokenizationMintCallback tokenizationMintCallback, ApiCallback<TokenizationRequest> _callback) throws ApiException Confirm Tokenized Asset Minted (asynchronously) This endpoint is used by the issuer to confirm the minting of tokenized assets previously requested by the Authorized Participant.- Parameters:
accountId- Account identifier. (required)tokenizationMintCallback- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully confirmed minting of a tokenized asset. - 400 Bad request (e.g. failed to decode request body). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationMintBrokerCall
public okhttp3.Call postTokenizationMintBrokerCall(@Nonnull UUID accountId, @Nonnull TokenizationMintRequest tokenizationMintRequest, ApiCallback _callback) throws ApiException Build call for postTokenizationMintBroker- Parameters:
accountId- Account identifier. (required)tokenizationMintRequest- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully requested minting of a tokenized asset. - 400 Bad request (e.g. malformed input, insufficient position, or account not authorized to mint). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationMintBroker
public TokenizationMintResponse postTokenizationMintBroker(@Nonnull UUID accountId, @Nonnull TokenizationMintRequest tokenizationMintRequest) throws ApiException Mint a Tokenized Asset This endpoint is used by an Authorized Participant to request the minting of a tokenized asset. Alpaca will initiate a journal of the underlying asset from the Authorized Participant's account to the issuer's account.- Parameters:
accountId- Account identifier. (required)tokenizationMintRequest- (required)- Returns:
- TokenizationMintResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully requested minting of a tokenized asset. - 400 Bad request (e.g. malformed input, insufficient position, or account not authorized to mint). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationMintBrokerWithHttpInfo
public ApiResponse<TokenizationMintResponse> postTokenizationMintBrokerWithHttpInfo(@Nonnull UUID accountId, @Nonnull TokenizationMintRequest tokenizationMintRequest) throws ApiException Mint a Tokenized Asset This endpoint is used by an Authorized Participant to request the minting of a tokenized asset. Alpaca will initiate a journal of the underlying asset from the Authorized Participant's account to the issuer's account.- Parameters:
accountId- Account identifier. (required)tokenizationMintRequest- (required)- Returns:
- ApiResponse<TokenizationMintResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully requested minting of a tokenized asset. - 400 Bad request (e.g. malformed input, insufficient position, or account not authorized to mint). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationMintBrokerAsync
public okhttp3.Call postTokenizationMintBrokerAsync(@Nonnull UUID accountId, @Nonnull TokenizationMintRequest tokenizationMintRequest, ApiCallback<TokenizationMintResponse> _callback) throws ApiException Mint a Tokenized Asset (asynchronously) This endpoint is used by an Authorized Participant to request the minting of a tokenized asset. Alpaca will initiate a journal of the underlying asset from the Authorized Participant's account to the issuer's account.- Parameters:
accountId- Account identifier. (required)tokenizationMintRequest- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully requested minting of a tokenized asset. - 400 Bad request (e.g. malformed input, insufficient position, or account not authorized to mint). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationRedeemCall
public okhttp3.Call postTokenizationRedeemCall(@Nonnull UUID accountId, @Nonnull TokenizationRedeemRequest tokenizationRedeemRequest, ApiCallback _callback) throws ApiException Build call for postTokenizationRedeem- Parameters:
accountId- Account identifier. (required)tokenizationRedeemRequest- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully requested redemption of a tokenized asset. - 400 Bad request (e.g. malformed input, insufficient quantity, or account not authorized to redeem). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationRedeem
public TokenizationRedeemResponse postTokenizationRedeem(@Nonnull UUID accountId, @Nonnull TokenizationRedeemRequest tokenizationRedeemRequest) throws ApiException Redeem a Tokenized Asset This endpoint is used by the tokenized asset issuer to confirm the redemption of tokens previously held in the Authorized Participant's wallet. When the issuer invokes this endpoint, Alpaca will initiate a journal of the underlying asset into the Authorized Participant's account.- Parameters:
accountId- Account identifier. (required)tokenizationRedeemRequest- (required)- Returns:
- TokenizationRedeemResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully requested redemption of a tokenized asset. - 400 Bad request (e.g. malformed input, insufficient quantity, or account not authorized to redeem). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationRedeemWithHttpInfo
public ApiResponse<TokenizationRedeemResponse> postTokenizationRedeemWithHttpInfo(@Nonnull UUID accountId, @Nonnull TokenizationRedeemRequest tokenizationRedeemRequest) throws ApiException Redeem a Tokenized Asset This endpoint is used by the tokenized asset issuer to confirm the redemption of tokens previously held in the Authorized Participant's wallet. When the issuer invokes this endpoint, Alpaca will initiate a journal of the underlying asset into the Authorized Participant's account.- Parameters:
accountId- Account identifier. (required)tokenizationRedeemRequest- (required)- Returns:
- ApiResponse<TokenizationRedeemResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully requested redemption of a tokenized asset. - 400 Bad request (e.g. malformed input, insufficient quantity, or account not authorized to redeem). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-
postTokenizationRedeemAsync
public okhttp3.Call postTokenizationRedeemAsync(@Nonnull UUID accountId, @Nonnull TokenizationRedeemRequest tokenizationRedeemRequest, ApiCallback<TokenizationRedeemResponse> _callback) throws ApiException Redeem a Tokenized Asset (asynchronously) This endpoint is used by the tokenized asset issuer to confirm the redemption of tokens previously held in the Authorized Participant's wallet. When the issuer invokes this endpoint, Alpaca will initiate a journal of the underlying asset into the Authorized Participant's account.- Parameters:
accountId- Account identifier. (required)tokenizationRedeemRequest- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successfully requested redemption of a tokenized asset. - 400 Bad request (e.g. malformed input, insufficient quantity, or account not authorized to redeem). - 401 Authentication credentials are missing or invalid. - 403 Caller is not authorized to perform this operation. - 422 One or more request parameters are missing or invalid. -
-