Loading

DFS Fee Services API (latest)

Download OpenAPI specification:Download

Calculates fees/costs for orders in DFS (e.g. Portfolio operations like set up, rebalancing).

For endpoints that support localization the language can be passed either as a query string parameter (using the name 'language') or in the 'accept-language' header.
If no language is passed to such endpoints then the default configured language will be used.

FeeManagement

Retrieve applicable fees for each portfolio change

Retrieves applicable fees for each portfolio change according to pricing

Authorizations:
path Parameters
portfolioChangeTypeId
required
integer <int32>

Portfolio Change Type Id

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Responses

200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

get/v1.0/fees/portfolio-change-types/{portfolioChangeTypeId}
https://example-host/v1.0/fees/portfolio-change-types/{portfolioChangeTypeId}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "results":
    [
    ]
}

Update applicable fees for each portfolio change

Updates applicable fees for each portfolio change according to pricing

Authorizations:
path Parameters
portfolioChangeTypeId
required
integer <int32>

Portfolio Change Type Id

header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:

Request DTO

orderTypeId
integer <int32>
fees
Array of objects (FeeRequest) Nullable

Responses

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

patch/v1.0/fees/portfolio-change-types/{portfolioChangeTypeId}
https://example-host/v1.0/fees/portfolio-change-types/{portfolioChangeTypeId}

Request samples

Content type
Copy
Expand all Collapse all
{
  • "orderTypeId": 0,
  • "fees":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "code": "General",
  • "subCode": "string",
  • "message": "string",
  • "correlationId": "string",
  • "properties":
    {
    }
}

Get fee categories

Gets fee categories.

Authorizations:
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Responses

200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

500

Server Error

get/v1.0/fees/categories
https://example-host/v1.0/fees/categories

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "feeCategories":
    [
    ]
}

Calculate estimated trade(s) fees

Calculates estimated trade(s) fees. The fees will be presented at 3 different levels, grouped by instrument, accounts and consolidated in the aggregation currency provided.

Authorizations:
header Parameters
Accept-Language
string

The ISO 639-1 language to use for localizable data.

Request Body schema:

Simulate fees request

portfolioId
integer <int32> Nullable

Id of portfolio

productId
integer <int32> Nullable

Product used for standard pricing. Only provided when no Portfolio is provided

portfolioChangeTypeId
integer <int32>

Portfolio change type used in the trades (e.g. Rebalancing, Initial Set-up, etc)

aggregationCurrencyId
integer <int32> Nullable

Currency used as a presentation currency for the fees

orderBookEntries
Array of objects (OrderBookEntry) Nullable

Responses

200

Success

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

UnprocessableEntity

500

Server Error

post/v1.0/order-book/fees/simulate
https://example-host/v1.0/order-book/fees/simulate

Request samples

Content type
Copy
Expand all Collapse all
{
  • "portfolioId": 0,
  • "productId": 0,
  • "portfolioChangeTypeId": 0,
  • "aggregationCurrencyId": 0,
  • "orderBookEntries":
    [
    ]
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "orderBookEntries":
    [
    ],
  • "aggregatedFees":
    {
    },
  • "accounts":
    [
    ]
}