API reference

Get a marketplace's official fee schedule

Returns the fees the platform currently publishes for one marketplace, one slot per purpose: deposit, sale and withdraw.

GET /websites/{code}/fee-schedule

Returns the fees the platform currently publishes for one marketplace, one slot per purpose: deposit, sale and withdraw.

  • Each published slot carries the fully expanded official calculation chain at the revision the platform applies for that purpose: every fee operator, convert operator and convert operator group with its values, currencies and current revision, so one request is enough to reproduce the platform's calculation. Every operator of an official chain is itself official.
  • A slot whose chain has id 0 is explicitly free: the platform charges nothing for that purpose, and the chain has no steps.
  • A slot is null when the platform has no official calculation chain published for that purpose: the fee is unknown, or the marketplace does not offer it. null never means free.
  • Each chain states its start_currency: the currency a price must be in for the chain to apply (null: any currency); input_auto and output_auto say whether a price in another currency, and the result, are meant to be converted around it.
  • Ownership and management fields are not included.

A 404 means no marketplace has this code.

Usage

NameDescription
AuthenticationNo authentication
Credit costFree
Recommended interval300 seconds

Parameters

NameInTypeRequiredDescription
codepathstringYesMarketplace code, as listed by GET /websites.

Responses

StatusDescriptionSchema
200Successful ResponseEnvelope_FeeScheduleOut_
404The requested resource does not existErrorEnvelope
422A parameter or the request body is invalidErrorEnvelope
503The service is temporarily unavailable; retry laterErrorEnvelope

Models

CreditMeta

Credit accounting for a billable request.

FieldTypeRequiredDescription
costintegerYesCredits this request costs.
remainingintegerYesEstimated credit balance left after this request. A hint rather than a ledger: concurrent requests can make it slightly off.

Envelope_FeeScheduleOut_

FieldTypeRequiredDescription
dataFeeScheduleOutYesThe endpoint payload.
metaMetaYesRequest metadata.

ErrorBody

Details of a failed request.

FieldTypeRequiredDescription
codestringYesStable machine-readable error code. Branch on this value, not on message.
messagestringYesHuman-readable explanation. The wording may change.
detailsobject or nullNoOptional structured context, such as the list of validation errors or, for credit_insufficient, the required and remaining credits.

ErrorEnvelope

Error response: the error in error plus request metadata in meta.

FieldTypeRequiredDescription
errorErrorBodyYesWhat went wrong.
metaMetaYesRequest metadata.

FeeScheduleOut

The official fees the platform currently publishes for one marketplace, per purpose. A purpose is null when no official chain is published for it.

FieldTypeRequiredDescription
website_codestringYesMarketplace code.
slotsFeeScheduleSlotsOutYesThe published official chain for each purpose.

FeeScheduleSlotOut

The official chain published for one purpose.

FieldTypeRequiredDescription
purposestringYesPurpose: deposit, sale or withdraw. Values: deposit, sale, withdraw.
calculation_chainPublicCalculationChainOutYesThe official calculation chain for this purpose.

FeeScheduleSlotsOut

The published official chains of one marketplace, by purpose.

FieldTypeRequiredDescription
depositFeeScheduleSlotOut or nullYesFees on deposits; null if none is published.
saleFeeScheduleSlotOut or nullYesFees on sales; null if none is published.
withdrawFeeScheduleSlotOut or nullYesFees on withdrawals; null if none is published.

Meta

Request metadata included in every enveloped response.

FieldTypeRequiredDescription
request_idstringYesUnique identifier of this request, identical to the X-Request-ID response header. Quote it when contacting support.
billableboolean or nullNoWhether the request is billed in credits. Present only on metered endpoints; false means the request is free, for example because it costs nothing or your subscription covers it.
creditCreditMeta or nullNoCost of the request and your estimated remaining balance. Present only when billable is true.
pagePageMeta or nullNoPaging state. Present only on a response that lists a page.

PageMeta

Where a paged list stands after this page.

FieldTypeRequiredDescription
limitintegerYesPage size actually applied to this request.
has_nextbooleanYesWhether another page follows.
next_cursorstring or nullYesPass it back unchanged as cursor to get the next page; null once the list is complete.

PublicCalculationChainOut

An official calculation chain as published in a fee schedule.

FieldTypeRequiredDescription
idinteger or nullYesUnique ID of the calculation chain. 0 is the built-in no-fee chain: the platform charges nothing for this purpose.
namestring or nullYesDisplay name, if set.
start_currencystring or nullYesCurrency the chain expects the price in; null when it applies to any currency. A price in another currency is not covered by it.
revisioninteger or nullYesThe revision of the chain the platform applies for this purpose; a newer one is not in effect until it is applied here.
input_autobooleanYesWhether a price in another currency is first converted into start_currency (through the official US dollar values).
output_autobooleanYesWhether the result is meant to be converted into the viewer's home currency after the last step.
stepsarray of PublicFeeOperatorOut or PublicConvertOperatorOut or PublicConvertOperatorGroupOutYesSteps in execution order, discriminated by kind.

PublicConvertOperatorGroupOut

A group of alternative conversions in a published fee schedule.

FieldTypeRequiredDescription
kind"convert_operator_group"YesStep type: always convert_operator_group.
idinteger or nullYesUnique ID of the group.
namestringYesDisplay name.
rulestringYesHow the result is picked from the members that convert successfully: min, max or avg. Values: min, max, avg.
membersarray of PublicConvertOperatorOutYesThe member conversions, in order.
revisioninteger or nullYesCurrent revision of the group.

PublicConvertOperatorOut

A currency conversion step of a published fee schedule.

FieldTypeRequiredDescription
kind"convert"YesStep type: always convert.
idinteger or nullYesUnique ID of the convert operator.
namestringYesDisplay name.
fromPublicCurrencyOutYesSource currency.
toPublicCurrencyOutYesTarget currency.
modestringYesauto converts through both currencies' usd_rate; fixed multiplies by rate. Values: auto, fixed.
ratestring or nullYesUnits of the target currency per one unit of the source currency, as a decimal string; used in fixed mode.
revisioninteger or nullYesCurrent revision of the convert operator.

PublicCurrencyOut

A currency as used by a published fee schedule.

FieldTypeRequiredDescription
idinteger or nullYesUnique ID of the currency.
codestringYesCurrency code, e.g. USD.
namestring or nullYesDisplay name.
kindstringYesCurrency kind, e.g. fiat.
usd_ratestringYesValue of one unit in US dollars, as a decimal string.

PublicFeeOperatorOut

A fee step of a published fee schedule.

FieldTypeRequiredDescription
kind"fee"YesStep type: always fee.
idinteger or nullYesUnique ID of the fee operator.
namestringYesDisplay name.
operatorstringYesArithmetic applied to the running amount: add, sub, mul or div. Values: add, sub, mul, div.
valuestringYesOperand of the arithmetic, as a decimal string.
currency_codestring or nullYesCurrency of the amount for add and sub; null for mul and div.
revisioninteger or nullYesCurrent revision of the fee operator.

Download the public OpenAPI schema