---
title: "GET /v1/cost/summary"
method: GET
path: "/v1/cost/summary"
tags: ["cost"]
---

# GET /v1/cost/summary

`GET /v1/cost/summary`

Get the summary of the cost we paid for swaps.

## Query parameters

- `since` string, date

## Response `200`

OK

- object[] — list of possible swap server's and assets we have gained/lost so far.
  - `server_endpoint` string — The endpoint of the server
  - `costs` object[] — Summary of the income/outcome with the swap.
    - `crypto_code` 'BTC' | 'LTC'
    - `cost` Cost
      - `onchain_payment` integer — An on-chain amount we gained/lost through swap. This might be positive value iff in the case of loop out.
      - `offchain_payment` integer — An off-chain amount we gained/lost through swap. This might be positive value iff in the case of loop in.
      - `onchain_fee` integer — An on-chain miner fee we lost through swap. This value is always negative. The absolute value tends to get higher in case of loop-in, since we must create two txs in case of refund. And its swap tx is usually larger than the tx we create in case of loop-out.
      - `offchain_fee` integer — An off-chain routing fee we lost through swap. This value is always negative, and it is only for loop-out.
      - `offchain_prepayment` integer — An off-chain prepayment value for the swap. This value is always negative, and it is only for loop-out.
      - `offchain_prepayment_fee` integer — An off-chain prepayment routing fee for the swap. This value is always negative, and it is only for loop-out.

## Changes

- **2022-02-08** `1c17b0b8e542` — 1 info
  - endpoint added
- **2022-01-19** `ebc31c9ff358` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/bitbankinc/apis/nloop-server-openapi-definition/changes/v1/cost/summary/get.md)

---

[API](https://skmtc.dev/bitbankinc/apis/nloop-server-openapi-definition.md) · [All operations](https://skmtc.dev/bitbankinc/apis/nloop-server-openapi-definition/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bitbankinc/nloop-server-openapi-definition/revisions/633782f04ad9/schema)
