Market 2.0 API
OpenAPI spec of Market 2.0 API.
Client wallet for the deal
Identifier represents a unique identifier for the deal in UUID format.
Ok represents a successful operation with an HTTP status code of 200
Bad Request - Invalid input or validation error
ErrDealNotFound indicates that the specified deal could not be found, corresponding to the HTTP status code 404
ErrUnsupportedDataSource indicates the specified data source is not supported or disabled for use in the current context
ErrUnsupportedProduct indicates that the requested product is not supported by the provider
ErrProductNotEnabled indicates that the requested product is not enabled on the provider
ErrProductValidationFailed indicates a failure during product-specific validation due to invalid or missing data
ErrDealRejectedByMarket indicates that a proposed deal was rejected by the market for not meeting its acceptance criteria or rules
ErrServiceOverloaded indicates that the service is overloaded and cannot process the request at the moment
ErrMalformedDataSource indicates that the provided data source is incorrectly formatted or contains invalid data
ErrMarketNotEnabled indicates that the market is not enabled for the requested operation
ErrDurationTooShort indicates that the provided duration value does not meet the minimum required threshold
ErrServerInternalError indicates an internal server error with a corresponding error code of 500
ErrServiceMaintenance indicates that the service is temporarily unavailable due to maintenance, corresponding to HTTP status code 503
id
Client wallet for the deal
Identifier represents a unique identifier for the deal in UUID format.
Ok represents a successful operation with an HTTP status code of 200
Bad Request - Invalid input or validation error
ErrDealNotFound indicates that the specified deal could not be found, corresponding to the HTTP status code 404
ErrUnsupportedDataSource indicates the specified data source is not supported or disabled for use in the current context
ErrUnsupportedProduct indicates that the requested product is not supported by the provider
ErrProductNotEnabled indicates that the requested product is not enabled on the provider
ErrProductValidationFailed indicates a failure during product-specific validation due to invalid or missing data
ErrDealRejectedByMarket indicates that a proposed deal was rejected by the market for not meeting its acceptance criteria or rules
ErrServiceOverloaded indicates that the service is overloaded and cannot process the request at the moment
ErrMalformedDataSource indicates that the provided data source is incorrectly formatted or contains invalid data
ErrMarketNotEnabled indicates that the market is not enabled for the requested operation
ErrDurationTooShort indicates that the provided duration value does not meet the minimum required threshold
ErrServerInternalError indicates an internal server error with a corresponding error code of 500
ErrServiceMaintenance indicates that the service is temporarily unavailable due to maintenance, corresponding to HTTP status code 503
id
Client wallet for the deal
Identifier represents a unique identifier for the deal in UUID format.
Ok represents a successful operation with an HTTP status code of 200
Bad Request - Invalid input or validation error
ErrDealNotFound indicates that the specified deal could not be found, corresponding to the HTTP status code 404
ErrUnsupportedDataSource indicates the specified data source is not supported or disabled for use in the current context
ErrUnsupportedProduct indicates that the requested product is not supported by the provider
ErrProductNotEnabled indicates that the requested product is not enabled on the provider
ErrProductValidationFailed indicates a failure during product-specific validation due to invalid or missing data
ErrDealRejectedByMarket indicates that a proposed deal was rejected by the market for not meeting its acceptance criteria or rules
ErrServiceOverloaded indicates that the service is overloaded and cannot process the request at the moment
ErrMalformedDataSource indicates that the provided data source is incorrectly formatted or contains invalid data
ErrMarketNotEnabled indicates that the market is not enabled for the requested operation
ErrDurationTooShort indicates that the provided duration value does not meet the minimum required threshold
ErrServerInternalError indicates an internal server error with a corresponding error code of 500
ErrServiceMaintenance indicates that the service is temporarily unavailable due to maintenance, corresponding to HTTP status code 503
id
UploadOk indicates a successful upload operation, represented by the HTTP status code 200
Bad Request - Invalid input or validation error
UploadStartCodeDealNotFound represents a 404 status indicating the deal was not found during the upload start process
UploadServerError indicates a server-side error occurred during the upload process, represented by the HTTP status code 500
id
Client wallet for the deal
Identifier represents a unique identifier for the deal in UUID format.
Ok represents a successful operation with an HTTP status code of 200
Bad Request - Invalid input or validation error
ErrDealNotFound indicates that the specified deal could not be found, corresponding to the HTTP status code 404
ErrUnsupportedDataSource indicates the specified data source is not supported or disabled for use in the current context
ErrUnsupportedProduct indicates that the requested product is not supported by the provider
ErrProductNotEnabled indicates that the requested product is not enabled on the provider
ErrProductValidationFailed indicates a failure during product-specific validation due to invalid or missing data
ErrDealRejectedByMarket indicates that a proposed deal was rejected by the market for not meeting its acceptance criteria or rules
ErrServiceOverloaded indicates that the service is overloaded and cannot process the request at the moment
ErrMalformedDataSource indicates that the provided data source is incorrectly formatted or contains invalid data
ErrMarketNotEnabled indicates that the market is not enabled for the requested operation
ErrDurationTooShort indicates that the provided duration value does not meet the minimum required threshold
ErrServerInternalError indicates an internal server error with a corresponding error code of 500
ErrServiceMaintenance indicates that the service is temporarily unavailable due to maintenance, corresponding to HTTP status code 503
id
The status of a file upload process, including progress and missing chunks
Missing represents the number of chunks that are not yet uploaded.
MissingChunks is a slice containing the indices of missing chunks.
TotalChunks represents the total number of chunks required for the upload.
Uploaded represents the number of chunks successfully uploaded.
UploadedChunks is a slice containing the indices of successfully uploaded chunks.
Bad Request - Invalid input or validation error
UploadStatusCodeDealNotFound indicates that the requested deal was not found, corresponding to status code 404
UploadStatusCodeUploadNotStarted indicates that the upload process has not started yet
UploadStatusCodeServerError indicates an internal server error occurred during the upload process, corresponding to status code 500
id
ChunkSize defines the size of each data chunk to be used during the upload process.
RawSize indicates the total size of the data to be uploaded in bytes.
UploadStartCodeOk indicates a successful upload start request with status code 200
Bad Request - Invalid input or validation error
UploadStartCodeDealNotFound represents a 404 status indicating the deal was not found during the upload start process
UploadStartCodeAlreadyStarted indicates that the upload process has already been initiated and cannot be started again
UploadStartCodeServerError indicates an error occurred on the server while processing an upload start request
id
chunkNum
UploadOk indicates a successful upload operation, represented by the HTTP status code 200
Bad Request - Invalid input or validation error
UploadNotFound represents an error where the requested upload chunk could not be found, typically corresponding to HTTP status 404
UploadChunkAlreadyUploaded indicates that the chunk has already been uploaded and cannot be re-uploaded
UploadServerError indicates a server-side error occurred during the upload process, represented by the HTTP status code 500
Last updated