1. Overview

1.1. Content Types

Application uses JSON and XML for consuming and producing requests.

Market Operations

2. Orders

2.1. Filter Order Book

Request

POST /market-service/order-book/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 74
Host: localhost:8080

{
  "deliveryPeriod" : null,
  "loadType" : null,
  "organizationId" : 1
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1395

{
  "body" : {
    "contractStatistics" : [ {
      "aofPrice" : 0,
      "basePrice" : 4,
      "bestBuyingOrderOwner" : false,
      "bestBuyingOrderPrice" : null,
      "bestBuyingOrderQuantityInLot" : null,
      "bestSellingOrderOwner" : null,
      "bestSellingOrderPrice" : null,
      "bestSellingOrderQuantityInLot" : null,
      "contractName" : "EBY22",
      "contractType" : "STANDARD",
      "dailyTotalMatchCount" : 0,
      "dailyTotalMatchQuantity" : 0,
      "dayType" : "ALLDAYS",
      "deliveryPeriod" : "YEAR",
      "deliveryPeriodLabel" : null,
      "dipPrice" : 100,
      "isBestBuyingOrderPrice" : null,
      "isBestSellingOrderPrice" : null,
      "lastMatchPrice" : 94,
      "lastMatchPriceChangeFlag" : 1,
      "lastMatchPriceChangeRatio" : 1.08,
      "lastMatchQuantityInLot" : 4,
      "lastTradingDate" : "2021-12-27",
      "loadType" : "BASE",
      "maxMatchPrice" : 100,
      "maxMatchQuantityInLot" : 14,
      "minMatchPrice" : 0,
      "minMatchQuantityInLot" : 1,
      "netStatusQuantityInLot" : 4,
      "openPositionQuantityInLot" : 27,
      "openinPrice" : 100,
      "priceDifferenceOrder" : null,
      "productId" : 3875,
      "totalMatchPrice" : 12700248,
      "totalMatchQuantityInLot" : 62
    } ],
    "requestTime" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.2. Order Query By Participant

Request

POST /participant/market-service/order/by-participant HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 337
Host: localhost:8080

{
  "directionList" : [ "BUY", "SELL" ],
  "endTime" : "2021-05-04T23:59:59",
  "productIds" : [ 2810183, 3797, 3823, 3836, 3849, 11007, 3745, 18910 ],
  "range" : null,
  "sort" : null,
  "startTime" : "2021-05-04T00:00:00",
  "statusList" : [ "ACTIVE", "PASSIVE", "PARTIALLY_MATCHED", "MATCHED", "CANCELLED", "EXPIRED", "SUSPENDED" ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1627

{
  "body" : {
    "orderByParticipantList" : [ {
      "contractName" : {
        "text" : "EMB0821",
        "value" : 3836
      },
      "direction" : {
        "text" : "TR1",
        "value" : "TR1"
      },
      "expireDate" : null,
      "matchingPrice" : null,
      "matchingQuantity" : null,
      "modifyDateTime" : "2024-11-28T11:27:37.259440338",
      "modifyUser" : "SYSTEM",
      "note" : null,
      "orderId" : null,
      "orderTypeOption" : null,
      "orderVersion" : null,
      "ordersByParticipantDetailElement" : [ {
        "contractName" : {
          "text" : "EMB0821",
          "value" : 3836
        },
        "direction" : {
          "text" : "Alış",
          "value" : "BUY"
        },
        "expireDate" : null,
        "matchingPrice" : null,
        "matchingQuantity" : null,
        "modifyDateTime" : "2024-11-28T11:27:37.259338801",
        "modifyUser" : "SYSTEM",
        "note" : null,
        "orderId" : 1234,
        "orderTypeOption" : null,
        "orderVersion" : 1,
        "price" : 123,
        "quantity" : 10,
        "region" : {
          "text" : "TR1",
          "value" : "TR1"
        },
        "remainingQuantity" : 5,
        "status" : {
          "text" : "Aktif",
          "value" : "ACTIVE"
        }
      } ],
      "price" : null,
      "quantity" : 10,
      "region" : null,
      "remainingQuantity" : 5,
      "status" : {
        "text" : "Eşleşti",
        "value" : "MATCHED"
      }
    } ],
    "queryInformation" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.3. Update Order

Request

POST /shared/market/order/update HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 139
Host: localhost:8080

{
  "orders" : [ {
    "isPassive" : false,
    "note" : "Update order",
    "orderId" : 123,
    "price" : 100,
    "quantity" : 5
  } ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1225

{
  "body" : {
    "orders" : [ {
      "contractName" : null,
      "direction" : {
        "text" : "Alış",
        "value" : "BUY"
      },
      "engineStatus" : {
        "text" : "Kuyrukta",
        "value" : "IN_QUEUE"
      },
      "executionOption" : null,
      "expireDate" : null,
      "failMessage" : null,
      "modifyTime" : "2024-11-28T11:27:37.309787367",
      "note" : null,
      "oldOffset" : 111,
      "oldStatus" : {
        "text" : "Aktif",
        "value" : "ACTIVE"
      },
      "orderId" : 123,
      "organizationId" : 12,
      "previousPrice" : 100,
      "previousQuantity" : 10,
      "price" : 100,
      "productId" : 321,
      "quantity" : 5,
      "relatedProductId" : 321,
      "remainingQuantity" : 5,
      "status" : {
        "text" : "Aktif",
        "value" : "ACTIVE"
      },
      "statusReason" : null,
      "success" : true,
      "time" : null,
      "transactionType" : {
        "text" : "Eşleşme",
        "value" : "MATCHING"
      },
      "type" : {
        "text" : "Standart",
        "value" : "STANDARD"
      },
      "version" : 1
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.4. Passivate Order

Request

POST /shared/market/order/passivate HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 74
Host: localhost:8080

{
  "note" : "Passivate Order",
  "orderId" : 123,
  "status" : "ACTIVE"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1151

{
  "body" : {
    "contractName" : null,
    "direction" : {
      "text" : "Alış",
      "value" : "BUY"
    },
    "engineStatus" : {
      "text" : "Kuyrukta",
      "value" : "IN_QUEUE"
    },
    "executionOption" : null,
    "expireDate" : null,
    "failMessage" : null,
    "modifyTime" : "2024-11-28T11:27:37.333513377",
    "note" : "Passivate Order",
    "oldOffset" : 222,
    "oldStatus" : {
      "text" : "Aktif",
      "value" : "ACTIVE"
    },
    "orderId" : 123,
    "organizationId" : 12,
    "previousPrice" : 100,
    "previousQuantity" : 10,
    "price" : 100,
    "productId" : 321,
    "quantity" : 5,
    "relatedProductId" : 321,
    "remainingQuantity" : 5,
    "status" : {
      "text" : "Pasif",
      "value" : "PASSIVE"
    },
    "statusReason" : null,
    "success" : true,
    "time" : "2024-11-28T11:27:37.333565756",
    "transactionType" : {
      "text" : "Eşleşme",
      "value" : "MATCHING"
    },
    "type" : {
      "text" : "Standart",
      "value" : "STANDARD"
    },
    "version" : 1
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.5. Activate Order

Request

POST /shared/market/order/activate HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 74
Host: localhost:8080

{
  "note" : "Activate Order",
  "orderId" : 123,
  "status" : "PASSIVE"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1151

{
  "body" : {
    "contractName" : null,
    "direction" : {
      "text" : "Alış",
      "value" : "BUY"
    },
    "engineStatus" : {
      "text" : "Kuyrukta",
      "value" : "IN_QUEUE"
    },
    "executionOption" : null,
    "expireDate" : null,
    "failMessage" : null,
    "modifyTime" : "2024-11-28T11:27:37.354914177",
    "note" : "Passivate Order",
    "oldOffset" : 222,
    "oldStatus" : {
      "text" : "Pasif",
      "value" : "PASSIVE"
    },
    "orderId" : 123,
    "organizationId" : 12,
    "previousPrice" : 100,
    "previousQuantity" : 10,
    "price" : 100,
    "productId" : 321,
    "quantity" : 5,
    "relatedProductId" : 321,
    "remainingQuantity" : 5,
    "status" : {
      "text" : "Aktif",
      "value" : "ACTIVE"
    },
    "statusReason" : null,
    "success" : true,
    "time" : "2024-11-28T11:27:37.354950071",
    "transactionType" : {
      "text" : "Eşleşme",
      "value" : "MATCHING"
    },
    "type" : {
      "text" : "Standart",
      "value" : "STANDARD"
    },
    "version" : 1
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.6. Cancel Order

Request

POST /shared/market/order/cancel HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 71
Host: localhost:8080

{
  "note" : "Cancel Order",
  "orderId" : 123,
  "status" : "ACTIVE"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1152

{
  "body" : {
    "contractName" : null,
    "direction" : {
      "text" : "Alış",
      "value" : "BUY"
    },
    "engineStatus" : {
      "text" : "Kuyrukta",
      "value" : "IN_QUEUE"
    },
    "executionOption" : null,
    "expireDate" : null,
    "failMessage" : null,
    "modifyTime" : "2024-11-28T11:27:37.3724283",
    "note" : "Passivate Order",
    "oldOffset" : 222,
    "oldStatus" : {
      "text" : "Aktif",
      "value" : "ACTIVE"
    },
    "orderId" : 123,
    "organizationId" : 12,
    "previousPrice" : 100,
    "previousQuantity" : 10,
    "price" : 100,
    "productId" : 321,
    "quantity" : 5,
    "relatedProductId" : 321,
    "remainingQuantity" : 5,
    "status" : {
      "text" : "İptal",
      "value" : "CANCELLED"
    },
    "statusReason" : null,
    "success" : true,
    "time" : "2024-11-28T11:27:37.372457745",
    "transactionType" : {
      "text" : "Eşleşme",
      "value" : "MATCHING"
    },
    "type" : {
      "text" : "Standart",
      "value" : "STANDARD"
    },
    "version" : 1
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.7. Save New Order

Request

POST /shared/market/order/save HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 326
Host: localhost:8080

{
  "orders" : [ {
    "byPassLimitCheck" : null,
    "direction" : "BUY",
    "executionOption" : null,
    "expireDate" : null,
    "note" : null,
    "price" : 2,
    "productId" : 3303201,
    "quantity" : 2,
    "relatedProductId" : null,
    "status" : null,
    "transactionType" : null,
    "type" : "STANDARD"
  } ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1125

{
  "body" : {
    "orders" : [ {
      "contractName" : null,
      "direction" : {
        "text" : "Alış",
        "value" : "BUY"
      },
      "engineStatus" : {
        "text" : "Kuyrukta",
        "value" : "IN_QUEUE"
      },
      "executionOption" : null,
      "expireDate" : null,
      "failMessage" : null,
      "modifyTime" : "2024-11-28T11:27:37.187623697",
      "note" : null,
      "oldOffset" : null,
      "oldStatus" : null,
      "orderId" : 100032552,
      "organizationId" : 16095,
      "previousPrice" : null,
      "previousQuantity" : null,
      "price" : 2,
      "productId" : 3303201,
      "quantity" : 2,
      "relatedProductId" : null,
      "remainingQuantity" : 2,
      "status" : null,
      "statusReason" : null,
      "success" : null,
      "time" : null,
      "transactionType" : {
        "text" : "Eşleşme",
        "value" : "MATCHING"
      },
      "type" : {
        "text" : "Standart",
        "value" : "STANDARD"
      },
      "version" : 1
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.8. Order All Version

Request

POST /participant/market-service/order/by-participant/ HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 72
Host: localhost:8080

{
  "orderId" : 100031214,
  "organizationId" : null,
  "range" : null
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1871

{
  "body" : {
    "orderByParticipantList" : [ {
      "contractName" : {
        "text" : "EBM0621",
        "value" : 3810
      },
      "direction" : {
        "text" : "Satış",
        "value" : "SELL"
      },
      "expireDate" : "2099-05-04T09:31:41.000000935",
      "matchingPrice" : 363.27,
      "matchingQuantity" : 2,
      "modifyDateTime" : "2021-05-04T09:31:41.000000935",
      "modifyUser" : "SYSTEM",
      "note" : "test için",
      "orderId" : 100031214,
      "orderTypeOption" : {
        "text" : "",
        "value" : ""
      },
      "orderVersion" : 61,
      "ordersByParticipantDetailElement" : [ {
        "contractName" : {
          "text" : "EBM0621",
          "value" : 3810
        },
        "direction" : {
          "text" : "Satış",
          "value" : "SELL"
        },
        "expireDate" : "2099-05-04T09:31:41.000000935",
        "matchingPrice" : 24,
        "matchingQuantity" : 2,
        "modifyDateTime" : "2021-05-04T09:31:41.000000935",
        "modifyUser" : "SYSTEM",
        "note" : "detay sayfası not",
        "orderId" : 100031214,
        "orderTypeOption" : {
          "text" : "",
          "value" : ""
        },
        "orderVersion" : 60,
        "price" : 363.27,
        "quantity" : 2,
        "region" : {
          "text" : "TR1",
          "value" : "TR1"
        },
        "remainingQuantity" : 2,
        "status" : {
          "text" : "Aktif",
          "value" : "ACTIVE"
        }
      } ],
      "price" : 363.27,
      "quantity" : 2,
      "region" : {
        "text" : "TR1",
        "value" : "TR1"
      },
      "remainingQuantity" : 0,
      "status" : {
        "text" : "Eşleşti",
        "value" : "MATCHED"
      }
    } ],
    "queryInformation" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.9. Check Limits

Request

POST /participant/market-service/order/checklimit HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 155
Host: localhost:8080

{
  "direction" : "BUY",
  "isContractAuctionOffer" : false,
  "orderId" : 123,
  "price" : 100,
  "productId" : 22,
  "quantity" : 10,
  "status" : null
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 181

{
  "body" : {
    "showWarning" : false,
    "warningMessage" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.10. Query Order Depth

Request

POST /shared/market/order/order-depth HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 91
Host: localhost:8080

{
  "isPopUp" : true,
  "page" : 1,
  "popUp" : null,
  "productId" : 3862,
  "size" : 99
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 448

{
  "body" : {
    "buyOfferDepthList" : [ {
      "isOwnerOrganization" : true,
      "ownerOrganization" : true,
      "price" : 124,
      "quantity" : 24
    } ],
    "sellOfferDepthList" : [ {
      "isOwnerOrganization" : true,
      "ownerOrganization" : true,
      "price" : 124,
      "quantity" : 24
    } ],
    "total" : 24
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.11. Query Min/Max Price of Contract

Request

POST /market-service/contract/price/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 66
Host: localhost:8080

{
  "priceChangeLimitLookup" : "MARKET",
  "productId" : 3303201
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 195

{
  "body" : {
    "maxPrice" : 2000,
    "minPrice" : 0,
    "openingPrice" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.12. Contract Query

Request

POST /market-service/contract/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 250
Host: localhost:8080

{
  "contractName" : "EBM0522",
  "contractStatus" : "STATUS",
  "deliveryPeriod" : "PERIOD",
  "range" : {
    "page" : 1,
    "rowCount" : 1
  },
  "region" : "TR1",
  "sort" : {
    "direction" : "ASC",
    "field" : "FIELD"
  },
  "year" : 2022
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1370

{
  "body" : {
    "contracts" : [ {
      "cascadingDate" : "2022-03-03",
      "cascadingMethod" : {
        "text" : "CASCADING METHOD",
        "value" : "CASCADING METHOD"
      },
      "contractId" : 522,
      "contractName" : "EBM522",
      "contractStatus" : {
        "text" : "CONTRACT STATUS",
        "value" : "CONTRACT STATUS"
      },
      "contractType" : {
        "text" : "CONTRACT TYPE",
        "value" : "CONTRACT TYPE"
      },
      "dayType" : {
        "text" : "DAY TYPE",
        "value" : "DAY TYPE"
      },
      "deliveryPeriod" : {
        "text" : "DELIVERY PERIOD",
        "value" : "DELIVERY PERIOD"
      },
      "deliveryPeriodEnd" : "2022-07-10",
      "deliveryPeriodStart" : "2022-07-09",
      "firstTradingDate" : "2022-05-10",
      "highlighted" : true,
      "lastTradingDate" : "2022-05-12",
      "loadType" : {
        "text" : "LOAD TYPE",
        "value" : "LOAD TYPE"
      },
      "marketMakerStatus" : {
        "text" : "MARKET MAKER STATUS",
        "value" : "MARKET MAKER STATUS"
      },
      "onDashboard" : true,
      "region" : {
        "text" : "TR1",
        "value" : "TR1"
      }
    } ],
    "queryInformation" : {
      "count" : 1,
      "page" : 1,
      "totalCount" : 1
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.13. Report Query

Request

POST /contract/report/opening-closing HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 19
Host: localhost:8080

{
  "year" : 2022
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 422

{
  "body" : {
    "contractOpeningClosingReportModelList" : [ {
      "contractName" : "EBM0522",
      "deliveryPeriod" : "DELIVERYPERIOD",
      "firtTradingDate" : "2022-04-20",
      "lastTradingDate" : "2022-04-20",
      "status" : {
        "text" : "STATUS",
        "value" : "STATUS"
      }
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

2.14. Contract Parameters Query

Request

POST /market-service/contract/common/parameter/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 148
Host: localhost:8080

{
  "contractType" : "CONTRACTTYPE",
  "dayType" : "DAYTYPE",
  "deliveryPeriod" : "DELIVERYPERIOD",
  "loadType" : "LOADTYPE",
  "region" : "TR1"
}

Response

POST /market-service/contract/common/parameter/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 148
Host: localhost:8080

{
  "contractType" : "CONTRACTTYPE",
  "dayType" : "DAYTYPE",
  "deliveryPeriod" : "DELIVERYPERIOD",
  "loadType" : "LOADTYPE",
  "region" : "TR1"
}

3. Matching

3.1. Match Operation Flow

Request

POST /market-service/match/operation-flow HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 106
Host: localhost:8080

{
  "productId" : 3823,
  "range" : {
    "page" : 1,
    "rowCount" : 100
  },
  "selectedOrgId" : null
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 384

{
  "body" : {
    "matchOperationFlowList" : [ {
      "contractName" : "EBM0721",
      "matchQuantityInLot" : 7,
      "matchingDate" : "2021-05-04",
      "matchingTime" : "14:52:55",
      "price" : 160,
      "productId" : 3823
    } ],
    "queryInformation" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

3.2. Query Match Of Participant

Request

POST /participant/match/matches-of-participant HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 462
Host: localhost:8080

{
  "directionList" : [ "BUY", "SELL" ],
  "endTime" : "2021-05-04T23:59:59.000000999",
  "matchOperationType" : [ "matching", "synthetic_matching", "default_order_book" ],
  "matchStatusList" : [ "valid", "invalid" ],
  "orderId" : null,
  "orgId" : null,
  "productIds" : [ 3797, 3810, 3823, 3836, 3849, 3862, 3745, 3875 ],
  "range" : {
    "page" : 1,
    "rowCount" : 5
  },
  "sort" : {
    "direction" : "DESC"
  },
  "startTime" : "2021-04-27T00:00:00"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 978

{
  "body" : {
    "matchOfParticipantList" : [ {
      "contractName" : {
        "text" : "EBM0621",
        "value" : 3810
      },
      "matchDirection" : {
        "text" : "Satış",
        "value" : "SELL"
      },
      "matchId" : "5326dqVg9a",
      "matchOperationType" : {
        "text" : "Eşleşme",
        "value" : "matching"
      },
      "matchPrice" : 363.27,
      "matchQuantityInLot" : 2,
      "matchStatus" : {
        "text" : "Geçerli",
        "value" : "valid"
      },
      "matchingDateTime" : "2021-05-04T09:31:41.000000835",
      "modifyUser" : "SYSTEM",
      "objectionStatus" : {
        "text" : "İtiraz Et",
        "value" : "available"
      },
      "objectionable" : false,
      "orderId" : 100031214,
      "region" : {
        "text" : "TR1",
        "value" : "TR1"
      }
    } ],
    "queryInformation" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

3.3. Query Contract Matching Prices

Request

POST /market-service/match-price/report/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 114
Host: localhost:8080

{
  "endDate" : "2022-04-20",
  "range" : {
    "page" : 1,
    "rowCount" : 1
  },
  "startDate" : "2022-04-20"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 681

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "matchPrices" : [ {
      "contractId" : 100,
      "contractName" : "EBM0522",
      "contractStatus" : "CONTRACTSTATUS",
      "deliveryPeriod" : "DELIVERYPERIOD",
      "matchDailyIndicatorPriceOrReferencePrice" : "MATCHDAILYINDICATORPRICEORREFERENCEPRICE",
      "matchFirstPrice" : "MATCHFIRSTPRICE",
      "matchHighestPrice" : "MATCHHIGHESTPRICE",
      "matchLastPrice" : "MATCHLASTPRICE",
      "matchLowestPrice" : "MATCHLOWESTPRICE",
      "matchWeightedAveragePrice" : "MATCHWEIGHTEDAVERAGEPRICE",
      "seanceDay" : "2022-04-20"
    } ]
  }
}

3.4. Seance Query

Request

POST /market-service/seance/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 32
Host: localhost:8080

{
  "seanceDay" : "2022-04-20"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1549

{
  "body" : {
    "auctionParameters" : [ {
      "auctionPendingStatusDurationInMinute" : 100,
      "auctionPreviewStatusDurationInMinute" : 100,
      "matchingDurationInMinute" : 100,
      "objectionDurationInMinute" : 100,
      "objectionResponseDurationInMinute" : 100,
      "orderRegistrationDurationInMinute" : 100
    } ],
    "dailyPriceParameters" : [ {
      "bestBuyingOrderCount" : 100,
      "bestSellingOrderCount" : 100,
      "matchingDailyIndicatorPriceEffectPercentage" : 10,
      "matchingQuantityLowerBoundInLot" : 10,
      "orderDailyIndicatorPriceEffectPercentage" : 10,
      "orderQuantityLowerBoundInLot" : 10,
      "orderTimeLowerBoundInSeconds" : 100
    } ],
    "gateParameters" : [ {
      "endTime" : "ENDTIME",
      "gateType" : "GATETYPE",
      "minOperationDurationInMinute" : 10,
      "startTime" : "STARTTIME"
    } ],
    "marketPriceSurveyParameters" : [ {
      "chiefTraderProcedureDurationInMinute" : 10
    } ],
    "objectionParameters" : [ {
      "maxObjectionDurationInMinute" : 100,
      "objectionDurationInMinute" : 100,
      "objectionResponseDurationInMinute" : 100
    } ],
    "orderParameters" : [ {
      "maxOrderPrice" : 10,
      "maxOrderQuantityInLot" : 10,
      "minOrderPrice" : 10,
      "minOrderQuantityInLot" : 10,
      "pricePrecision" : 10,
      "quantityPrecisionInLot" : 10
    } ],
    "seanceDay" : "2022-04-20",
    "seanceStatus" : "SEANCESTATUS"
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

4. Prices

4.1. Contract Index Prices

Request

POST /market-service/dip/report/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 114
Host: localhost:8080

{
  "endDate" : "2022-04-20",
  "range" : {
    "page" : 1,
    "rowCount" : 1
  },
  "startDate" : "2022-04-20"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 125

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : null
}

4.2. Daily Index Price

Request

POST /market-service/trade-registration/dip HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 44
Host: localhost:8080

{
  "region" : "TR",
  "contractId" : 3810
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 125

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : null
}

4.3. Year

Request

POST /exist/market/position-limit/parameter/year HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 129

{
  "body" : [ 2022 ],
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

5. Trade Registration Entry

5.1. Save Trade Registration

Request

POST /market-service/trade-registration/save HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 245
Host: localhost:8080

{
  "tradeRegistrations" : [ {
    "contractId" : 3303201,
    "counterPartyId" : 10374,
    "explanation" : "TRADE_REGISTRATION",
    "orderDirection" : "BUY",
    "orderPrice" : 22,
    "orderQuantityInLot" : null,
    "region" : "TR1"
  } ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 711

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "tradeRegistrationSaveResponseItems" : [ {
      "tradeRegistrationSaveElement" : {
        "region" : "TR1",
        "counterPartyName" : "XXX Anonim Şirketi",
        "contractName" : "EBBOM0521-06",
        "orderPrice" : 22,
        "orderQuantityInLot" : 22,
        "orderDirection" : {
          "text" : "Alış",
          "value" : "BUY"
        },
        "explanation" : {
          "text" : "Özel İşlem Girişi",
          "value" : "TRADE_REGISTRATION"
        }
      },
      "productId" : 3565481,
      "isSuccess" : true,
      "errorMessage" : null
    } ]
  }
}

5.2. Query Trade Registration Contract Lookup

Request

POST /market-service/trade-registration/contract-lookup HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 355
Host: localhost:8080

{
  "cascadingDateEnd" : "2022-04-20",
  "cascadingDateStart" : "2022-04-20",
  "contractStatus" : "CONTRACTSTATUS",
  "contractType" : [ "CONTRACTTYPE" ],
  "deliveryPeriod" : [ "DELIVERYPERIOD" ],
  "deliveryPeriodEnd" : "2022-04-20",
  "deliveryPeriodStart" : "2022-04-20",
  "listPreviousAllowedContracts" : true,
  "orgId" : 100,
  "region" : "TR1"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 219

{
  "body" : {
    "contractTypeLookups" : [ {
      "text" : "ContractType",
      "value" : 10000
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

5.3. Update Trade Registration

Request

POST /market-service/trade-registration/update HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 151
Host: localhost:8080

{
  "tradeRegistrations" : [ {
    "explanation" : "EXPLANATION",
    "orderPrice" : 100,
    "orderQuantityInLot" : 100,
    "productId" : 122
  } ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 478

{
  "body" : {
    "tradeRegistrationUpdateResponseItems" : [ {
      "errorMessage" : "ERRORMESSAGE",
      "isSuccess" : true,
      "oldPrice" : 100,
      "oldQuantity" : null,
      "tradeRegistrationUpdateElement" : {
        "explanation" : "EXPLANATION",
        "orderPrice" : 10,
        "orderQuantityInLot" : 10,
        "productId" : 100
      }
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

5.4. Cancel Trade Registration

Request

POST /market-service/trade-registration/cancel HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 100
Host: localhost:8080

{
  "explanationList" : [ {
    "lang" : "EN",
    "note" : "NOTE"
  } ],
  "productIds" : [ 122 ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 271

{
  "body" : {
    "tradeRegistrationBaseResponseItems" : [ {
      "errorMessage" : "ERROR MESSAGE",
      "isSuccess" : true,
      "productId" : 100
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

6. Objections

6.1. Save Participant Objection

Request

POST /participant/market-service/objection/save HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 75
Host: localhost:8080

{
  "matchId" : "53263AXBMu",
  "objectionMessage" : "açıklama kısmı"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 154

{
  "body" : {
    "objectionId" : 3565308
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

6.2. Query Objection

Request

POST /market-service/objection/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 140
Host: localhost:8080

{
  "contractName" : "EBM0522",
  "endDate" : "2022-04-20",
  "organizations" : [ 1 ],
  "startDate" : "2022-04-20",
  "status" : "STATUS"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 961

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "objections" : [ {
      "contractName" : null,
      "matchStatus" : "MATCHSTATUS",
      "matchDirection" : "MATCHDIRECTION",
      "matchType" : "MATCHTYPE",
      "matchQuantity" : 100,
      "matchTime" : "2022-04-20T11:00:00",
      "matchPrice" : 10,
      "replyTime" : "2022-04-20T11:00:00",
      "objectionStatus" : "OBJECTIONSTATUS",
      "replyUser" : "REPLYUSER",
      "replyMessage" : "REPLYMESSAGE",
      "id" : 100,
      "objectionOrganizationId" : 100,
      "objectionOrganizationName" : "OBJECTIONORGANIZATIONNAME",
      "objectionUser" : "OBJECTIONUSER",
      "objectionMessage" : "OBJECTIONMESSAGE",
      "objectionTime" : "2022-04-20T11:00:00",
      "orderId" : 100,
      "matchId" : "MATCHID"
    } ],
    "queryInformation" : {
      "count" : null,
      "page" : 1,
      "totalCount" : 1
    }
  }
}

7. Limits

7.1. Market Position Limit Query

Request

POST /shared/market/limit-operation/market-position-limit/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 61
Host: localhost:8080

{
  "maxVersion" : true,
  "versionId" : 100,
  "year" : 10
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 3187

{
  "body" : {
    "marketPositionLimit" : {
      "bomContractLimits" : [ {
        "bomContractDayLimits" : [ {
          "additionalLimit" : null,
          "day" : null,
          "order" : null,
          "totalLimitQuantityInLot" : null
        } ],
        "month" : {
          "text" : "MONTH",
          "value" : "MONTH"
        }
      } ],
      "deliveryPeriodLimits" : [ {
        "buyingOpenPositionQuantityInLot" : 100,
        "buyingRemaingOrderLimitQuantityInLot" : 100,
        "buyingRemaingPositionLimitQuantityInLot" : 100,
        "deliveryPeriod" : {
          "text" : "DELIVERYPERIOD",
          "value" : "DELIVERYPERIOD"
        },
        "deliveryPeriodLimitDetail" : [ {
          "additionalLimit" : null,
          "afterCascadingNetLimitQuantityInLot" : null,
          "buyingOpenPositionQuantityInLot" : null,
          "buyingRemaingOrderLimitQuantityInLot" : null,
          "buyingRemaingPositionLimitQuantityInLot" : null,
          "cascadedLimitQuantityInLot" : null,
          "dayCount" : null,
          "deliveryPeriodOrder" : null,
          "hourlyTotalBuyingLimitQuantityInLot" : null,
          "hourlyTotalSellingLimitQuantityInLot" : null,
          "marketMakerAdditionalLimitQuantityInLot" : null,
          "marketMakerBuyingAdditionalLimitQuantityInLot" : null,
          "marketMakerSellingAdditionalLimitQuantityInLot" : null,
          "sellingOpenPositionQuantityInLot" : null,
          "sellingRemaingOrderLimitQuantityInLot" : null,
          "sellingRemaingPositionLimitQuantityInLot" : null,
          "totalBuyingLimitQuantityInLot" : null,
          "totalLimitQuantityInLot" : null,
          "totalSellingLimitQuantityInLot" : null
        } ],
        "deliveryPeriodLimitId" : 100,
        "hourlyTotalBuyingLimitQuantityInLot" : 100,
        "hourlyTotalSellingLimitQuantityInLot" : 100,
        "limitRatio" : 10,
        "marketMakerAdditionalLimitQuantityInLot" : 100,
        "marketMakerBuyingAdditionalLimitQuantityInLot" : 100,
        "marketMakerSellingAdditionalLimitQuantityInLot" : 100,
        "sellingOpenPositionQuantityInLot" : 100,
        "sellingRemaingOrderLimitQuantityInLot" : 100,
        "sellingRemaingPositionLimitQuantityInLot" : 100,
        "totalBuyingLimitQuantityInLot" : 100,
        "totalLimitQuantityInLot" : 100,
        "totalSellingLimitQuantityInLot" : 100
      } ],
      "description" : "DESCRIPTION",
      "effectiveStartDate" : "2022-04-20",
      "estimatedConsumptionQuantityInLot" : 100,
      "marketMakerAdditionalLimitQuantityInLot" : 100,
      "marketMakerAdditionalLimitRatio" : 10,
      "marketMonthLimits" : [ {
        "marketPositionLimitWithoutDailyAndWeeklyInLot" : null,
        "month" : null,
        "monthlyMarketPositionLimitInLot" : null,
        "monthlyMarketTransactionLimitInLot" : null,
        "settlementBasedTractionRatio" : null
      } ],
      "positionLimitQuantityInLot" : 100,
      "positionLimitRatio" : 10,
      "version" : {
        "text" : "VERSION",
        "value" : "VERSION"
      },
      "year" : 10
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

7.2. Organization Position Limit Demand Query

Request

POST /participant/market/limit-change/organization-position-limit-demand/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 62
Host: localhost:8080

{
  "organizationId" : 1,
  "versionId" : 1,
  "year" : 2022
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 2110

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "demandDate" : "2022-04-20",
    "explanation" : null,
    "explanationEpias" : null,
    "organizationPositionLimit" : {
      "bomContractLimits" : [ {
        "bomContractDayLimits" : null,
        "month" : null
      } ],
      "deliveryPeriodLimits" : [ {
        "buyingOpenPositionQuantityInLot" : null,
        "buyingRemaingOrderLimitQuantityInLot" : null,
        "buyingRemaingPositionLimitQuantityInLot" : null,
        "deliveryPeriod" : null,
        "deliveryPeriodLimitDetail" : null,
        "deliveryPeriodLimitId" : null,
        "hourlyTotalBuyingLimitQuantityInLot" : null,
        "hourlyTotalSellingLimitQuantityInLot" : null,
        "limitRatio" : null,
        "marketMakerAdditionalLimitQuantityInLot" : null,
        "marketMakerBuyingAdditionalLimitQuantityInLot" : null,
        "marketMakerSellingAdditionalLimitQuantityInLot" : null,
        "sellingOpenPositionQuantityInLot" : null,
        "sellingRemaingOrderLimitQuantityInLot" : null,
        "sellingRemaingPositionLimitQuantityInLot" : null,
        "totalBuyingLimitQuantityInLot" : null,
        "totalLimitQuantityInLot" : null,
        "totalSellingLimitQuantityInLot" : null
      } ],
      "description" : "DESCRIPTION",
      "effectiveStartDate" : "2022-04-20",
      "estimatedConsumptionQuantityInLot" : 100,
      "marketMakerAdditionalLimitQuantityInLot" : 100,
      "marketMakerAdditionalLimitRatio" : 10,
      "marketMonthLimits" : [ {
        "marketPositionLimitWithoutDailyAndWeeklyInLot" : null,
        "month" : null,
        "monthlyMarketPositionLimitInLot" : null,
        "monthlyMarketTransactionLimitInLot" : null,
        "settlementBasedTractionRatio" : null
      } ],
      "organizationId" : 100,
      "positionLimitQuantityInLot" : 100,
      "positionLimitRatio" : 10,
      "version" : {
        "text" : "VERSION",
        "value" : "VERSION"
      },
      "year" : 10
    },
    "status" : {
      "text" : "STATUS",
      "value" : "STATUS"
    }
  }
}

7.3. Market Position Limit Summary

Request

POST /shared/market/limit-operation/market-position-limit/summary HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 44
Host: localhost:8080

{
  "versionId" : 12,
  "years" : [ 2021 ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 478

{
  "body" : {
    "marketPositionLimits" : [ {
      "hourlyMarketLimitQuantityInLot" : 100,
      "hourlyMarketMakerAdditionalLimitQuantityInLot" : 100,
      "marketLimitQuantityInLot" : 100,
      "marketMakerAdditionalLimitQuantityInLot" : 100,
      "marketPositionLimitQueryResponse" : {
        "marketPositionLimit" : null
      },
      "year" : 10
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

7.4. Organization Position Limit Summary

Request

POST /shared/market/limit-operation/organization-position-limit/summary HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 87
Host: localhost:8080

{
  "organizationIds" : [ 1 ],
  "versionId" : null,
  "years" : [ 2021, 2023, 2025 ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 796

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : [ {
    "organizationName" : "ORGANIZATIONNAME",
    "marketMakerAdditionalLimitQuantityInLotWeb" : "MARKETMAKERADDITIONALLIMITQUANTITYINLOTWEB",
    "marketMakerAdditionalLimitRatioWeb" : "MARKETMAKERADDITIONALLIMITRATIOWEB",
    "hourlyMarketMakerAdditionalLimitQuantityInLotWeb" : "HOURLYMARKETMAKERADDITIONALLIMITQUANTITYINLOTWEB",
    "hourlyMarketMakerAdditionalLimitQuantityInLot" : null,
    "hourlyOrganizationLimitQuantityInLot" : null,
    "marketLimitRatio" : null,
    "marketMakerAdditionalLimitQuantityInLot" : null,
    "marketMakerAdditionalLimitRatio" : null,
    "organizationId" : null,
    "organizationLimitQuantityInLot" : null,
    "year" : null
  } ]
}

7.5. Calculate Organization Position Limit Demand

Request

POST /participant/market/limit-change/organization-position-limit-demand/calculate HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 93
Host: localhost:8080

{
  "organizationId" : 1,
  "demandedOrganizationPositionLimitInLot" : 100,
  "year" : 2022
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 125

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : null
}

7.6. Save Organization Position Limit Demand

Request

POST /participant/market/limit-change/organization-position-limit-demand/save HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 344
Host: localhost:8080

{
  "description" : null,
  "netPositions" : [ {
    "amount" : 100,
    "contractType" : "CONTRACTTYPE",
    "day" : 10,
    "deliveryPeriod" : "DELIVERYPERIOD",
    "deliveryPeriodOrder" : 10,
    "deliveryYear" : 10
  } ],
  "organizationId" : 100,
  "organizationLimitRatio" : 10,
  "organizationPositionLimitInLot" : 100,
  "year" : 2022
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 640

{
  "body" : {
    "createTime" : "2022-04-20T11:00:00",
    "explanation" : null,
    "explanationEpias" : null,
    "increaseOperation" : true,
    "organizationId" : 100,
    "organizationLimitRatio" : 10,
    "organizationPositionLimitDemandId" : 100,
    "organizationPositionLimitId" : 100,
    "organizationPositionLimitInLot" : 100,
    "presentOrganizationLimitRatio" : null,
    "presentOrganizationPositionLimitInLot" : null,
    "status" : {
      "text" : "STATUS",
      "value" : "STATUS"
    },
    "year" : 2022
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

8. Net Positions

8.1. Filter Net Position

Request

POST /market-service/net-position/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 386
Host: localhost:8080

{
  "contratStatus" : "CONTRATSTATUS",
  "loadType" : "LOADTYPE",
  "netPositionDirection" : "NETPOSITIONDIRECTION",
  "netPositionOperationType" : "NETPOSITIONOPERATIONTYPE",
  "netPositionStatus" : "NETPOSITIONSTATUS",
  "netPositionTime" : "2022-04-20",
  "organizationId" : 100,
  "productIds" : [ 100 ],
  "range" : {
    "page" : 1,
    "rowCount" : 1
  },
  "region" : "REGION"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1931

{
  "body" : {
    "netPositions" : [ {
      "contractName" : "EBM0522",
      "contratStatus" : {
        "text" : "CONTRATSTATUS",
        "value" : "CONTRATSTATUS"
      },
      "createDate" : "2022-04-20T11:00:00",
      "loadType" : {
        "text" : "LOADTYPE",
        "value" : "LOADTYPE"
      },
      "netPositionDetails" : [ {
        "contractName" : "EBM0522",
        "contratStatus" : {
          "text" : "CONTRATSTATUS",
          "value" : "CONTRATSTATUS"
        },
        "createDate" : "2022-04-20T11:00:00",
        "loadType" : {
          "text" : "LOADTYPE",
          "value" : "LOADTYPE"
        },
        "netPositionDetailId" : 100,
        "netPositionDirection" : {
          "text" : "NETPOSITIONDIRECTION",
          "value" : "NETPOSITIONDIRECTION"
        },
        "netPositionOperationType" : {
          "text" : "NETPOSITIONOPERATIONTYPE",
          "value" : "NETPOSITIONOPERATIONTYPE"
        },
        "netPositionQuantityInLot" : 100,
        "netPositionStatus" : {
          "text" : "NETPOSITIONSTATUS",
          "value" : "NETPOSITIONSTATUS"
        },
        "positionMatchingPrice" : 10,
        "productId" : 100
      } ],
      "netPositionDirection" : {
        "text" : "NETPOSITIONDIRECTION",
        "value" : "NETPOSITIONDIRECTION"
      },
      "netPositionId" : 100,
      "netPositionOperationType" : {
        "text" : "NETPOSITIONOPERATIONTYPE",
        "value" : "NETPOSITIONOPERATIONTYPE"
      },
      "netPositionQuantityInLot" : 100,
      "netPositionStatus" : {
        "text" : "NETPOSITIONSTATUS",
        "value" : "NETPOSITIONSTATUS"
      },
      "organizationId" : 100,
      "positionMatchingPrice" : 10,
      "productId" : 100
    } ],
    "queryInformation" : {
      "count" : 1,
      "page" : 1,
      "totalCount" : 1
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

8.2. Net Position Status

Request

POST /market-service/net-position/status HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 217
Host: localhost:8080

{
  "firstDeliveryDate" : "2022-04-20",
  "isReport" : true,
  "lastDeliveryDate" : "2022-04-20",
  "period" : 10,
  "referenceDate" : "2022-04-20",
  "region" : "REGION",
  "report" : true,
  "showTransfers" : true
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 958

{
  "body" : {
    "days" : [ {
      "contracts" : [ {
        "contractName" : "EBM0522",
        "direction" : {
          "text" : "DIRECTION",
          "value" : "DIRECTION"
        },
        "hours" : [ 100 ],
        "position" : 10
      } ],
      "day" : "2022-04-20",
      "periods" : [ {
        "buy" : 10,
        "direction" : {
          "text" : "DIRECTION",
          "value" : "DIRECTION"
        },
        "period" : 10,
        "position" : 10,
        "sell" : 10
      } ]
    } ],
    "loadTypes" : [ {
      "contracts" : [ {
        "contractName" : "EBM0522",
        "direction" : {
          "text" : "DIRECTION",
          "value" : "DIRECTION"
        },
        "hours" : [ 100 ],
        "position" : 10
      } ],
      "loadType" : {
        "text" : "LOADTYPE",
        "value" : "LOADTYPE"
      }
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

9. Auction Management

9.1. Contract Based - Status GGF DIP

Request

GET /market-service/contract/status-ggf-dip HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 230

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "contractStatusLookups" : [ {
      "text" : "STATUSLOOKUP",
      "value" : "STATUSLOOKUP"
    } ]
  }
}

9.2. Contract Auction Query

Request

POST /market-service/contractauction/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 109
Host: localhost:8080

{
  "contractAuctionId" : 123345,
  "contractId" : 1234567,
  "seanceDay" : "2022-04-11",
  "type" : "TYPE"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1464

{
  "body" : {
    "contractAuctions" : [ {
      "allowedMarketMaker" : [ {
        "contractAuctionOrganizationId" : 10696,
        "organizationId" : 1
      } ],
      "allowedNotMarketMaker" : [ {
        "contractAuctionOrganizationId" : 10696,
        "organizationId" : 1
      } ],
      "buyAmount" : 100,
      "buyPrice" : 10,
      "calculatedValue" : 10,
      "contractAuctionId" : 100,
      "contractId" : 100,
      "contractName" : "CONTRACTNAME",
      "createDateTime" : "2022-04-20T11:12:00",
      "end" : "2022-04-20T12:12:00",
      "lastAmount" : 100,
      "lastPrice" : 10,
      "matchMaxAmount" : 100,
      "matchMaxPrice" : 10,
      "matchMinAmount" : 100,
      "matchMinPrice" : 10,
      "netPosition" : 100,
      "note" : "NOTE",
      "noteList" : null,
      "priceFinal" : 10,
      "priceId" : 100,
      "refAof" : 10,
      "refGgf" : 10,
      "refOpening" : 10,
      "restrictedOrganizations" : [ {
        "contractAuctionOrganizationId" : 10696,
        "organizationId" : 1
      } ],
      "sellAmount" : 100,
      "sellPrice" : 10,
      "start" : "2022-04-20T12:00:00",
      "status" : {
        "text" : "STATUS",
        "value" : "STATUS"
      },
      "transactionAmount" : 100,
      "transactionPrice" : 10,
      "type" : {
        "text" : "TYPE",
        "value" : "TYPE"
      }
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

9.3. Query Contract Auction Contract Lookup

Request

POST /market-service/contractauction/contract HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 33
Host: localhost:8080

{
  "seanceDate" : "2021-03-03"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 125

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : null
}

9.4. Query Contract Auction

Request

POST /market-service/contractauction/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 102
Host: localhost:8080

{
  "contractAuctionId" : null,
  "contractId" : 3771,
  "seanceDay" : "2021-03-03",
  "type" : null
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1708

{
  "body" : {
    "contractAuctions" : [ {
      "allowedMarketMaker" : [ {
        "contractAuctionOrganizationId" : 145314,
        "organizationId" : 1453
      } ],
      "allowedNotMarketMaker" : [ {
        "contractAuctionOrganizationId" : 145314,
        "organizationId" : 1453
      } ],
      "buyAmount" : 1299,
      "buyPrice" : 12991326,
      "calculatedValue" : 1326,
      "contractAuctionId" : 2455687,
      "contractId" : 18910,
      "contractName" : "EBQ322",
      "createDateTime" : "2021-03-04T17:43:30.000000014",
      "end" : "2021-03-04T17:50:30.000000582",
      "lastAmount" : 1326,
      "lastPrice" : 13261359,
      "matchMaxAmount" : 1389,
      "matchMaxPrice" : 13891402,
      "matchMinAmount" : 1359,
      "matchMinPrice" : 13591389,
      "netPosition" : 24,
      "note" : "EBQ322 kontratına ait Baz Fiyat belirlenmesi için 04/03/2021 17:48 saatinde Piyasa İşletmecisi tarafından ihale yapılacaktır.",
      "noteList" : null,
      "priceFinal" : 13891402,
      "priceId" : 2408869,
      "refAof" : 13591389,
      "refGgf" : 13891402,
      "refOpening" : 290,
      "restrictedOrganizations" : [ {
        "contractAuctionOrganizationId" : 145314,
        "organizationId" : 1453
      } ],
      "sellAmount" : 1413,
      "sellPrice" : 14131421,
      "start" : "2021-03-04T17:48:30.000000582",
      "status" : {
        "text" : "Kapandı",
        "value" : "CLOSED"
      },
      "transactionAmount" : 1413,
      "transactionPrice" : 14131421,
      "type" : {
        "text" : "Baz Fiyat",
        "value" : "BASIS"
      }
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

10. Survey Management

10.1. Chief Trader Procedure Query

Request

POST /market-service/chief-trader-procedure/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 118
Host: localhost:8080

{
  "contractId" : 1451,
  "end" : "2021-05-24",
  "organizationId" : 1,
  "start" : "2021-03-22",
  "type" : "TYPE"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 125

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : null
}

10.2. Chief Trader Procedure Contract Lookup

Request

POST /market-service/chief-trader-procedure/query/contract-lookup HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 95
Host: localhost:8080

{
  "end" : "2021-05-24",
  "organizationId" : 1,
  "start" : "2021-03-22",
  "type" : "TYPE"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 279

{
  "body" : {
    "contractTypeLookups" : [ {
      "text" : "EBD090221",
      "value" : 1373396
    }, {
      "text" : "EBD120221",
      "value" : 1387399
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

10.3. Offer Chief Trader Procedure

Request

POST /market-service/chief-trader-procedure/offer HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 56
Host: localhost:8080

{
  "chiefTraderProcedureId" : 1,
  "offerPrice" : 100
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 164

{
  "body" : {
    "chiefTraderProcedureOfferId" : 1
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

11. Cascading

11.1. Cascading Query

Request

POST /market-service/contract/cascading/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 126
Host: localhost:8080

{
  "contractId" : 522,
  "endDate" : "2022-04-13",
  "organizationId" : 1,
  "region" : "TR1",
  "startDate" : "2022-01-01"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1568

{
  "body" : {
    "afterCascadingList" : [ {
      "buyPosition" : 50,
      "cascadingToElementList" : [ {
        "buyPosition" : 100,
        "contractName" : "EBM0522",
        "periodOrder" : 1,
        "positionDate" : "2022-07-10T14:00:00",
        "positionStatus" : {
          "text" : "STATUS",
          "value" : "STATUS"
        },
        "region" : {
          "text" : "TR1",
          "value" : "TR1"
        },
        "sellPosition" : 150
      } ],
      "contractName" : "EBM0522",
      "positionDate" : null,
      "positionStatus" : {
        "text" : "STATUS",
        "value" : "STATUS"
      },
      "region" : {
        "text" : "TR1",
        "value" : "TR1"
      },
      "sellPosition" : 100
    } ],
    "beforeCascadingList" : [ {
      "buyPosition" : 50,
      "cascadingToElementList" : [ {
        "buyPosition" : 100,
        "contractName" : "EBM0522",
        "periodOrder" : 1,
        "positionDate" : "2022-07-10T14:00:00",
        "positionStatus" : {
          "text" : "STATUS",
          "value" : "STATUS"
        },
        "region" : {
          "text" : "TR1",
          "value" : "TR1"
        },
        "sellPosition" : 150
      } ],
      "contractName" : "EBM0522",
      "positionDate" : null,
      "positionStatus" : {
        "text" : "STATUS",
        "value" : "STATUS"
      },
      "region" : {
        "text" : "TR1",
        "value" : "TR1"
      },
      "sellPosition" : 100
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

12. Market Making Operations

12.1. Market Making Registration

Request

POST /participant/market-service/market-making-operation/registration-contract/save HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 227
Host: localhost:8080

{
  "responsibilityDemandList" : [ {
    "deliveryPeriod" : "DELIVERYPERIOD",
    "demandId" : 100,
    "followingPeriodCount" : 10,
    "loadType" : "LOADTYPE",
    "region" : "REGION",
    "startPeriod" : "2022-04-20"
  } ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY

12.2. Market Making Responsibility Query

Request

POST /market-service/marketmaker/responsibility/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 105
Host: localhost:8080

{
  "isDailyData" : true,
  "organizationId" : 100,
  "queryDate" : "2022-04-20",
  "region" : "REGION"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 674

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "controls" : [ {
      "organizationName" : "ORGANIZATIONNAME",
      "contractName" : "EBM0522",
      "determinedMinBuyQuantity" : 100,
      "determinedMinSellQuantity" : 100,
      "determinedPriceRatio" : 10,
      "contractDurationInSecond" : 100,
      "marketMakerDurationInSecond" : 100,
      "determinedInclusionRatio" : 10,
      "inclusionRatio" : 10,
      "isFullfilled" : true,
      "totalMatchQuantity" : 100,
      "nonMarketMakerMatchQuantity" : 100,
      "organizationMatchQuantity" : 100,
      "matchRatio" : 10
    } ]
  }
}

13. License

13.1. License Query

Request

POST /organization-service/license/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 83
Host: localhost:8080

{
  "licenseCheckDate" : "2022-04-20",
  "organizationId" : 100,
  "version" : 10
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 389

{
  "body" : {
    "licenses" : [ {
      "contracts" : [ "EBM0522" ],
      "licenseCheckDateTime" : "2022-04-20T11:00:00",
      "licenseExpirationDate" : "2022-04-20",
      "organizationName" : "ORGANIZATIONNAME",
      "username" : "USERNAME",
      "version" : 10
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

14. Announcements

14.1. Get All Announcements

Request

POST /activity-log-service/announcement/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 176
Host: localhost:8080

{
  "endDate" : "2024-11-28",
  "isRead" : true,
  "range" : {
    "page" : 1,
    "rowCount" : 100
  },
  "search" : null,
  "startDate" : "2024-10-29",
  "topicValue" : [ ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 601

{
  "body" : {
    "announcementQuery" : [ {
      "announcementId" : 3824,
      "isAdvancedTime" : true,
      "isPublished" : true,
      "openPopUp" : true,
      "publishDate" : "2022-03-04T10:10:00",
      "showPublishDate" : true,
      "stamentList" : [ {
        "lang" : "EN",
        "note" : "NOTE"
      } ],
      "statement" : "STATEMENT",
      "topicName" : "TOPIC NAME"
    } ],
    "queryInformation" : {
      "count" : 1,
      "page" : 1,
      "totalCount" : 1
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

14.2. Get Topics

Request

GET /activity-log-service/announcement/topic-types HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 215

{
  "body" : {
    "topicTypes" : [ {
      "text" : "TOPIC_TYPE",
      "value" : "TOPIC_TYPE"
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

15. Operations History

15.1. Operation Flow - Contract

Request

POST /market-service/match/operation-flow/contract HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 429
Host: localhost:8080

{
  "contractStatusList" : [ "" ],
  "deliveryPeriodList" : [ {
    "deliveryEnd" : null,
    "deliveryStart" : null
  } ],
  "endTime" : "2022-04-20T11:00:00",
  "loadTypeList" : [ "LOADTYPE" ],
  "matchOperationTypeList" : [ "MATCHOPERATIONTYPE" ],
  "matchStatusList" : [ "MATCHSTATUS" ],
  "productIdList" : [ 1 ],
  "range" : {
    "page" : 1,
    "rowCount" : 1
  },
  "sort" : null,
  "startTime" : "2022-04-20T11:00:00"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 242

{
  "body" : {
    "flowReportContractResponseList" : [ {
      "text" : "FLOWREPORTCONTRACTRESPONSE",
      "value" : 100
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

15.2. Operation Type

Request

GET /market-service/match/lookup/operation-type HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 204

{
  "body" : {
    "lookups" : [ {
      "text" : "LOOKUP",
      "value" : "LOOKUP"
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

15.3. Status

Request

GET /market-service/match/lookup/status HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 204

{
  "body" : {
    "lookups" : [ {
      "text" : "LOOKUP",
      "value" : "LOOKUP"
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

15.4. Load Type

Request

GET /market-service/contract/loadtype HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 228

{
  "body" : {
    "loadTypeLookups" : [ {
      "text" : "LOADTYPELOOKUP",
      "value" : "LOADTYPELOOKUP"
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

15.5. Status

Request

GET /market-service/contract/status HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY

15.6. Filter Transaction History

Request

POST /activity-log-service/transaction-history/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 335
Host: localhost:8080

{
  "activityType" : "ACTIVITYTYPE",
  "endDate" : "2022-04-20T11:00:00",
  "operationType" : "OPERATIONTYPE",
  "organizationId" : 100,
  "priority" : "PRIORITY",
  "range" : {
    "page" : 1,
    "rowCount" : 10
  },
  "region" : "TR1",
  "startDate" : "2022-04-20T11:00:00",
  "userOrganizationId" : 100,
  "username" : "USERNAME"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1502

{
  "body" : {
    "activity" : [ {
      "activityId" : 147016,
      "activityType" : {
        "text" : "KULLANICI HAREKETLERİ",
        "value" : "USER_ACTIVITY"
      },
      "logDescription" : "İşlem Geçmişi ekranı PK000 kullanıcısı tarafından görüntülenmiştir.",
      "operationTypeLookup" : {
        "text" : "KULLANICI",
        "value" : "USER"
      },
      "organizationId" : null,
      "organizationName" : "EPİAŞ",
      "parameterMap" : [ {
        "text" : "pageNameEN",
        "value" : "Transaction History"
      }, {
        "text" : "offset",
        "value" : "0"
      }, {
        "text" : "pageNameTR",
        "value" : "İşlem Geçmişi"
      }, {
        "text" : "userOrganizationId",
        "value" : "2"
      }, {
        "text" : "transactionTime",
        "value" : "2021-05-04T16:28:58.332923078"
      }, {
        "text" : "userName",
        "value" : "PK000"
      }, {
        "text" : "userName",
        "value" : "PK000"
      } ],
      "priorityLookup" : {
        "text" : "BİLGİ",
        "value" : "INFO"
      },
      "regionLookup" : {
        "text" : "TR1",
        "value" : "TR1"
      },
      "transactionTime" : "2024-11-28T11:27:51.765651204",
      "userDescription" : null,
      "userName" : "PK000"
    } ],
    "queryInformation" : {
      "count" : 1,
      "page" : 1,
      "totalCount" : 1
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

Collateral Operations

16. Collateral REST Service

16.1. Calculate Collateral in Seance

Request

POST /collateral-service/collateral-calculation/calculate-in-seance HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 74
Host: localhost:8080

{
  "priceChangeLimit" : null,
  "orders" : null,
  "organizationId" : 1
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 662

{
  "body" : {
    "availableCollateralAmount" : 9.9649998575E8,
    "contractCollateralAmount" : 1070032.23,
    "currentBlockedAmount" : 3500014.25,
    "currentCollateralAmount" : 1000000000,
    "entranceCollateralAmount" : 300000,
    "lastUpdateTime" : "2024-11-28T11:35:05.674359647",
    "markToMarketCollateralAmount" : 150914.06,
    "netLossCollateralAmount" : 752477.57,
    "perfectSpreadDiscountAmount" : 0.0,
    "physicalDeliveryCollateralAmount" : 1059923.04,
    "requiredCollateralAmount" : 3428337.21,
    "riskCoefficient" : 1.05
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

16.2. Takasbank Current Collateral

Request

POST /collateral-service/collateral-calculation/takasbank/current-collateral HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 246
Host: localhost:8080

{
  "dailyCollateralBalanceList" : [ {
    "cashCollateralVolume" : 1000000000,
    "collateralType" : "ISLM",
    "currencyCode" : "TRY",
    "date" : "2024-11-28",
    "eic" : "40X0000000000000",
    "totalCollateralVolume" : 1000000000
  } ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 125

{
  "body" : true,
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

16.3. Collateral Query

Request

POST /collateral-service/collateral-query/collateral HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 56
Host: localhost:8080

{
  "organizationId" : 1,
  "queryDate" : "2022-04-14"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 634

{
  "body" : {
    "availableCollateralAmount" : 0,
    "collateralDifferenceAmount" : 0,
    "contractCollateralAmount" : 0,
    "controlTime" : "2021-04-27T00:00:00",
    "entranceCollateralAmount" : 0,
    "lastUpdateTime" : "2021-04-27T00:00:00",
    "markToMarketCollateralAmount" : 0,
    "netLossCollateralAmount" : 0,
    "notificationTime" : "2021-04-27T00:00:00",
    "perfectSpreadDiscountAmount" : 0,
    "physicalDeliveryCollateralAmount" : null,
    "requiredCollateralAmount" : 0,
    "riskCoefficientT" : 0
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

16.4. Collateral Physical Query

Request

POST /collateral-service/collateral-query/physical-delivery-collateral HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 56
Host: localhost:8080

{
  "organizationId" : 1,
  "queryDate" : "2022-04-14"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 477

{
  "body" : {
    "physicalDeliveryCollateralDetails" : [ {
      "longNetPositionAmount" : 0,
      "longNetPositionQuantity" : 0,
      "physicalDeliveryDate" : "2022-04-04",
      "shortNetPositionAmount" : 0,
      "shortNetPositionQuantity" : 0
    } ],
    "totalLongPhysicalDeliveryCollateralAmount" : 0,
    "totalShortPhysicalDeliveryCollateralAmount" : 0
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

16.5. Query Contract Collateral

Request

POST /collateral-service/collateral-query/contract-collateral HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 56
Host: localhost:8080

{
  "organizationId" : 1,
  "queryDate" : "2022-04-10"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 380

{
  "body" : {
    "contractCollateralDetails" : [ {
      "contractCollateralAmount" : 10,
      "contractName" : "EBM0522",
      "dailyIndexPrice" : 10,
      "netPositionQuantity" : 10,
      "sizeCoefficient" : 10
    } ],
    "totalContractCollateralAmount" : 10
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

16.6. Physical Delivery Collateral

Request

POST /collateral-service/collateral-query/physical-delivery-collateral HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 56
Host: localhost:8080

{
  "organizationId" : 1,
  "queryDate" : "2022-04-10"
}

Response

POST /collateral-service/collateral-query/physical-delivery-collateral HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 56
Host: localhost:8080

{
  "organizationId" : 1,
  "queryDate" : "2022-04-10"
}

16.7. Query Mark to Market Collateral

Request

POST /collateral-service/collateral-query/marktomarket-collateral HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 56
Host: localhost:8080

{
  "organizationId" : 1,
  "queryDate" : "2022-04-10"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 411

{
  "body" : {
    "markToMarketCollateralDetails" : [ {
      "contractName" : "EBM0522",
      "dailyIndexPrice" : 10,
      "longPositionAmount" : 10,
      "matchPrice" : 10,
      "netPositionQuantity" : 10,
      "shortPositionAmount" : 10
    } ],
    "totalMarkToMarketCollateralAmount" : 10
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

16.8. Query Net-Loss Collateral

Request

POST /collateral-service/collateral-query/netloss-collateral HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 56
Host: localhost:8080

{
  "organizationId" : 1,
  "queryDate" : "2022-04-10"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 514

{
  "body" : {
    "financialDetailResponses" : [ {
      "contractName" : "EBM0522",
      "detailId" : 100,
      "netLossCollateralAmount" : 10
    } ],
    "physicalDetailResponses" : [ {
      "detailId" : 100,
      "netLossCollateralAmount" : 10,
      "physicalPeriodName" : "2022-04-20"
    } ],
    "totalNetLossFinancialCollateralAmount" : 10,
    "totalNetLossPhysicalCollateralAmount" : 10
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

16.9. Query Perfect-Spread Discount

Request

POST /collateral-service/collateral-query/perfectspread-discount HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 56
Host: localhost:8080

{
  "organizationId" : 1,
  "queryDate" : "2022-04-10"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 358

{
  "body" : {
    "perfectSpreadDiscountDetails" : [ {
      "detailIterationResponses" : [ {
        "contractName" : "EBM0522",
        "dailyIndexPrice" : 10,
        "discountQuantity" : 10
      } ],
      "totalDiscountAmount" : 10
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

16.10. Query Price Change Limit

Request

GET /market-service/contract/price-change-limit HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 252

{
  "body" : {
    "priceChangeLimitLookups" : [ {
      "text" : "PRICECHANGELIMITLOOKUP",
      "value" : "PRICECHANGELIMITLOOKUP"
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

16.11. DGA Table List

Request

POST /collateral-service/dga-info/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 58
Host: localhost:8080

{
  "dgfDate" : "2022-04-14",
  "organizationId" : 10695
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 396

{
  "body" : {
    "availableCashDgfContributeAmount" : 0,
    "availableTotalDgfContributeAmount" : 0,
    "lastCallCashDgfContributeAmount" : 0,
    "lastCallDateTime" : "2021-04-27T00:00:00",
    "lastCallTotalDgfContributeAmount" : 0,
    "lastUpdatedTime" : "2021-04-27T00:00:00"
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

16.12. Current Amount Last Updated Date

Request

GET /collateral-service/dga-info/lastupdatedate/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 168

{
  "body" : {
    "lastDgfDate" : "2021-04-27T00:00:00"
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

Default Operations

17. Default Operations REST Service

17.1. Default Auction Contracts

Request

POST /default-service/auction/contracts HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 34
Host: localhost:8080

{
  "nettingDate" : "2022-04-05"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 208

{
  "body" : {
    "contracts" : [ {
      "text" : "EBM0522",
      "value" : "EBM0522"
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

17.2. Default Auction Query

Request

POST /default-service/auction/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 122
Host: localhost:8080

{
  "contractId" : 100,
  "licensedContractIds" : [ 1515 ],
  "nettingDate" : "2022-04-20",
  "page" : 10,
  "size" : 10
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1256

{
  "body" : {
    "auctionList" : [ {
      "auctionDirection" : {
        "text" : "AUCTIONDIRECTION",
        "value" : "AUCTIONDIRECTION"
      },
      "auctionEndTime" : "AUCTIONENDTIME",
      "auctionId" : 100,
      "auctionObjectionEndTime" : "AUCTIONOBJECTIONENDTIME",
      "auctionQuantity" : 100,
      "auctionStartTime" : "AUCTIONSTARTTIME",
      "auctionStatus" : {
        "text" : "AUCTIONSTATUS",
        "value" : "AUCTIONSTATUS"
      },
      "auctionType" : {
        "text" : "AUCTIONTYPE",
        "value" : "AUCTIONTYPE"
      },
      "ceilingPrice" : 10,
      "contractId" : 100,
      "contractName" : "EBM0522",
      "floorPrice" : 10,
      "lastTransactionPrice" : 10,
      "lastTransactionQuantity" : 100,
      "maxBidQuantity" : 100,
      "maxMatchPrice" : 10,
      "maxQuantity" : 100,
      "minBidQuantity" : null,
      "minMatchPrice" : 10,
      "minQuantity" : 100,
      "openingPrice" : 10,
      "transactionAmount" : 10,
      "transactionQuantity" : 100,
      "weightedAveragePrice" : 10
    } ],
    "queryInformation" : {
      "count" : 1,
      "page" : 1,
      "totalCount" : 1
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

17.3. Default Management Matching Region

Request

GET /market-service/contract/region HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 222

{
  "body" : {
    "regionLookups" : [ {
      "text" : "REGIONLOOKUP",
      "value" : "REGIONLOOKUP"
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

17.4. Default Monitoring - List All

Request

GET /reconciliation/periods/list-all-for-defaults HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 225

{
  "body" : {
    "billingPeriods" : [ {
      "text" : "BILLINGPERIOD",
      "value" : "BILLINGPERIOD"
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

17.5. Default Monitoring - Get First Open

Request

GET /reconciliation/periods/get-first-open HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 220

{
  "body" : {
    "billingPeriod" : {
      "text" : "BILLINGPERIOD",
      "value" : "BILLINGPERIOD"
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

17.6. Intra Day Match Result

Request

POST /default-into/dam-netting/intraday-match-result HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 66
Host: localhost:8080

{
  "nettingDate" : "2022-04-14",
  "organizationIdList" : [ 1 ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 524

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "matchResultDetails" : [ {
      "id" : 1,
      "matchId" : 100,
      "contractName" : "EBM0522",
      "matchPrice" : 10,
      "matchQuantity" : 1,
      "matchStatus" : true,
      "orderId" : 999,
      "matchTransaction" : "-",
      "matchTime" : "2021-04-27T00:00:00",
      "defaultIntoNetting" : 20,
      "organizationId" : 1,
      "organizationName" : "ORGANIZATION NAME"
    } ]
  }
}

17.7. Filter Organization

Request

POST /default-into/dam-netting/netting/check-approve HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 34
Host: localhost:8080

{
  "defaultDate" : "2022-04-10"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 150

{
  "body" : {
    "approvable" : true
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

17.8. Default Parameters Query

Request

GET /default-service/default-parameters/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 550

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "auctionParametersList" : [ {
      "key" : "KEY",
      "localizationList" : null,
      "value" : "Value",
      "valueFormat" : "Value Format",
      "valueType" : "Value Type"
    } ],
    "orderBookParametersList" : null,
    "intradayParametersList" : [ {
      "key" : "KEY",
      "localizationList" : null,
      "value" : "Value",
      "valueFormat" : "Value Format",
      "valueType" : "Value Type"
    } ]
  }
}

17.9. Default Auction Query

Request

POST /default-service/auction/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 122
Host: localhost:8080

{
  "contractId" : 100,
  "licensedContractIds" : [ 1515 ],
  "nettingDate" : "2022-04-20",
  "page" : 10,
  "size" : 10
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1256

{
  "body" : {
    "auctionList" : [ {
      "auctionDirection" : {
        "text" : "AUCTIONDIRECTION",
        "value" : "AUCTIONDIRECTION"
      },
      "auctionEndTime" : "AUCTIONENDTIME",
      "auctionId" : 100,
      "auctionObjectionEndTime" : "AUCTIONOBJECTIONENDTIME",
      "auctionQuantity" : 100,
      "auctionStartTime" : "AUCTIONSTARTTIME",
      "auctionStatus" : {
        "text" : "AUCTIONSTATUS",
        "value" : "AUCTIONSTATUS"
      },
      "auctionType" : {
        "text" : "AUCTIONTYPE",
        "value" : "AUCTIONTYPE"
      },
      "ceilingPrice" : 10,
      "contractId" : 100,
      "contractName" : "EBM0522",
      "floorPrice" : 10,
      "lastTransactionPrice" : 10,
      "lastTransactionQuantity" : 100,
      "maxBidQuantity" : 100,
      "maxMatchPrice" : 10,
      "maxQuantity" : 100,
      "minBidQuantity" : null,
      "minMatchPrice" : 10,
      "minQuantity" : 100,
      "openingPrice" : 10,
      "transactionAmount" : 10,
      "transactionQuantity" : 100,
      "weightedAveragePrice" : 10
    } ],
    "queryInformation" : {
      "count" : 1,
      "page" : 1,
      "totalCount" : 1
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

Settlement Operations

18. Settlement Operations REST Service

18.1. Get Last Settlement Notification

Request

GET /reconciliation/periods/get-last-final HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 220

{
  "body" : {
    "billingPeriod" : {
      "text" : "BILLINGPERIOD",
      "value" : "BILLINGPERIOD"
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

18.2. Reconciliation Process Status Query

Request

POST /reconciliation/process/status HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 55
Host: localhost:8080

{
  "billingPeriod" : "2022-04-20",
  "zone" : "ZONE"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 456

{
  "body" : {
    "approvalDate" : "2022-04-20T11:00:00",
    "billingPeriod" : {
      "text" : "BILLINGPERIOD",
      "value" : "BILLINGPERIOD"
    },
    "invoiceDueDate" : "2022-04-20",
    "notificationDate" : "2022-04-20",
    "reconciliationStatus" : {
      "text" : "RECONCILIATIONSTATUS",
      "value" : "RECONCILIATIONSTATUS"
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

18.3. Fetch Daily Defaults

Request

POST /reconciliation/report/default/daily/fetch HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 81
Host: localhost:8080

{
  "billingPeriod" : "2022-04-20",
  "organizationId" : 100,
  "zone" : "ZONE"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1435

{
  "body" : {
    "marketDefaultReportModels" : [ {
      "dateTime" : "2022-04-20T11:00:00",
      "purchaseAmountDayAhead" : 10,
      "purchaseAmountEfm" : 10,
      "purchaseAmountEfmDefault" : 10,
      "purchaseAmountIntraDay" : 10,
      "purchaseVolumeDayAhead" : 10,
      "purchaseVolumeEfm" : 10,
      "purchaseVolumeEfmDefault" : 10,
      "purchaseVolumeIntraDay" : 10,
      "salesAmountDayAhead" : 10,
      "salesAmountEfm" : 10,
      "salesAmountEfmDefault" : 10,
      "salesAmountIntraDay" : 10,
      "salesVolumeDayAhead" : 10,
      "salesVolumeEfm" : 10,
      "salesVolumeEfmDefault" : 10,
      "salesVolumeIntraDay" : 10
    } ],
    "organizationName" : "ORGANIZATIONNAME",
    "totals" : {
      "dateTime" : "2022-04-20T11:00:00",
      "purchaseAmountDayAhead" : 10,
      "purchaseAmountEfm" : 10,
      "purchaseAmountEfmDefault" : 10,
      "purchaseAmountIntraDay" : 10,
      "purchaseVolumeDayAhead" : 10,
      "purchaseVolumeEfm" : 10,
      "purchaseVolumeEfmDefault" : 10,
      "purchaseVolumeIntraDay" : 10,
      "salesAmountDayAhead" : 10,
      "salesAmountEfm" : 10,
      "salesAmountEfmDefault" : 10,
      "salesAmountIntraDay" : 10,
      "salesVolumeDayAhead" : 10,
      "salesVolumeEfm" : 10,
      "salesVolumeEfmDefault" : 10,
      "salesVolumeIntraDay" : 10
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

Reports

19. Market Operations Report

19.1. Quantity of Buy and Sell Orders Query

Request

POST /report/market-order-quantity/contract/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 103
Host: localhost:8080

{
  "contractStatus" : [ "CONTRACTSTATUS" ],
  "endDate" : "2022-04-20",
  "startDate" : "2022-04-20"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 510

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "list" : [ {
      "contract" : "CONTRACT",
      "contractStatus" : "CONTRACTSTATUS",
      "day" : "2022-04-20",
      "deliveryPeriod" : "DELIVERYPERIOD",
      "marketOperationQuantity" : 100,
      "orderBuyQuantity" : 100,
      "orderSellQuantity" : 100,
      "syntheticBuyQuantity" : 100,
      "syntheticSellQuantity" : 100,
      "tradeOperationQuantity" : 100
    } ]
  }
}

19.2. Organization Based Order Operation Quantity

Request

POST /market-service/org-based-order-operation-quantity/report/filter-quantity HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 148
Host: localhost:8080

{
  "endDate" : "2022-04-20",
  "organizationIdList" : [ 100 ],
  "range" : {
    "page" : 1,
    "rowCount" : 1
  },
  "startDate" : "2022-04-20"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 900

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "organizationBasedOperationQuantityReportElementList" : [ {
      "contractName" : "EBM0522",
      "contractStatus" : "CONTRACTSTATUS",
      "day" : "2022-04-20",
      "deliveryPeriod" : "DELIVERYPERIOD",
      "marketBuyOperationQuantityInLot" : 100,
      "marketBuyOrderQuantityInLot" : 100,
      "marketSellOperationQuantityInLot" : 100,
      "marketSellOrderQuantityInLot" : 100,
      "organizationId" : 100,
      "organizationName" : "ORGANIZATIONNAME",
      "particularBuyOperationQuantityInLot" : 10,
      "particularSellOperationQuantityInLot" : 10,
      "syntheticBuyOperationQuantityInLot" : 100,
      "syntheticSellOperationQuantityInLot" : 100
    } ],
    "queryInformation" : {
      "count" : 1,
      "page" : 1,
      "totalCount" : 1
    }
  }
}

19.3. Organization Based - Order Operation Quantity Filter Count

Request

POST /market-service/org-based-order-operation-quantity/report/filter-count HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 148
Host: localhost:8080

{
  "endDate" : "2022-04-20",
  "organizationIdList" : [ 100 ],
  "range" : {
    "page" : 1,
    "rowCount" : 1
  },
  "startDate" : "2022-04-20"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 777

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "organizationBasedNumberOfOrderAndOperationReportElementList" : [ {
      "contractName" : "EBM0522",
      "contractStatus" : "CONTRACTSTATUS",
      "day" : "2022-04-20",
      "deliveryPeriod" : "DELIVERYPERIOD",
      "numberOfMarketBuyOperation" : 100,
      "numberOfMarketBuyOrder" : 100,
      "numberOfMarketSellOperation" : 100,
      "numberOfMarketSellOrder" : 100,
      "numberOfParticularBuyOperation" : 10,
      "numberOfParticularSellOperation" : 10,
      "organizationId" : 100,
      "organizationName" : "ORGANIZATIONNAME"
    } ],
    "queryInformation" : {
      "count" : 1,
      "page" : 1,
      "totalCount" : 1
    }
  }
}

19.4. Number of Order and Trade Report

Request

POST /market-service/order-trade-number/report/by-contract/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 114
Host: localhost:8080

{
  "endDate" : "2022-04-20",
  "range" : {
    "page" : 1,
    "rowCount" : 1
  },
  "startDate" : "2022-04-20"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 699

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "contractBasedNumberOfOrderAndOperationReportElementList" : [ {
      "contractName" : "EBM0522",
      "contractStatus" : "CONTRACTSTATUS",
      "day" : "2022-04-20",
      "deliveryPeriod" : "DELIVERYPERIOD",
      "numberOfMarketBuyOperation" : 100,
      "numberOfMarketBuyOrder" : 100,
      "numberOfMarketSellOperation" : 100,
      "numberOfMarketSellOrder" : 100,
      "numberOfParticularBuyOperation" : 10,
      "numberOfParticularSellOperation" : 10
    } ],
    "queryInformation" : {
      "count" : null,
      "page" : 1,
      "totalCount" : 1
    }
  }
}

19.5. Trade Value Query

Request

POST /market-service/report/transaction-value/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 60
Host: localhost:8080

{
  "endDate" : "2022-04-20",
  "startDate" : "2022-04-20"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 408

{
  "body" : {
    "list" : [ {
      "contract" : "CONTRACT",
      "contractStatus" : "CONTRACTSTATUS",
      "date" : "2022-04-20",
      "deliveryPeriod" : "DELIVERYPERIOD",
      "marketTransactionVolume" : 10,
      "totalTransactionVolume" : 10,
      "tradeTransactionVolume" : 10
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

19.6. Trade Quantity Filter

Request

POST /market-service/operation-quantity/report/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 114
Host: localhost:8080

{
  "endDate" : "2022-04-20",
  "range" : {
    "page" : 1,
    "rowCount" : 1
  },
  "startDate" : "2022-04-20"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1126

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "operationQuantityReportElementList" : [ {
      "cascadingDate" : "2022-04-20",
      "contractName" : "EBM0522",
      "contractStatus" : "CONTRACTSTATUS",
      "day" : "2022-04-20",
      "deliveryPeriod" : "DELIVERYPERIOD",
      "marketOperationQuantityInLot" : 100,
      "openPositionBuyChangeRatio" : 10,
      "openPositionBuyChangeRatioWithPercentage" : "OPENPOSITIONBUYCHANGERATIOWITHPERCENTAGE",
      "openPositionBuyQuantityInLot" : 100,
      "openPositionSellChangeRatio" : 10,
      "openPositionSellChangeRatioWithPercentage" : "OPENPOSITIONSELLCHANGERATIOWITHPERCENTAGE",
      "openPositionSellQuantityInLot" : 100,
      "particularOperationQuantityInLot" : 100,
      "synteticBuyOperationQuantityInLot" : "SYNTETICBUYOPERATIONQUANTITYINLOT",
      "synteticSellOperationQuantityInLot" : "SYNTETICSELLOPERATIONQUANTITYINLOT",
      "totalOperationQuantityInLot" : 100
    } ],
    "queryInformation" : {
      "count" : 10,
      "page" : 10,
      "totalCount" : 10
    }
  }
}

20. Default Operations Report

20.1. Default Operations Detail Report

Request

POST /market-service/indefault/report/detail HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 103
Host: localhost:8080

{
  "nettingDateEnd" : "2022-04-20",
  "nettingDateStart" : "2022-04-20",
  "organizationIds" : [ 1 ]
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 877

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "positions" : [ {
      "managedPositionId" : 100,
      "organizationName" : "ORGANIZATIONNAME",
      "managedPositionDate" : "2022-04-20",
      "contractName" : "EBM0522",
      "contractDeliveryPeriod" : {
        "text" : "CONTRACTDELIVERYPERIOD",
        "value" : "CONTRACTDELIVERYPERIOD"
      },
      "managedPositionQuantity" : 100,
      "managedPositionDirection" : {
        "text" : "MANAGEDPOSITIONDIRECTION",
        "value" : "MANAGEDPOSITIONDIRECTION"
      },
      "distributionMethod" : {
        "text" : "DISTRIBUTIONMETHOD",
        "value" : "DISTRIBUTIONMETHOD"
      },
      "mtm" : 100,
      "voluntaryAuction" : null,
      "compulsoryAuction" : null,
      "orderBook" : null,
      "distribution" : null
    } ]
  }
}

Miscellaneous

21. Endpoints

21.1. List Available Endpoints

Request

GET /available/endpoint HTTP/1.1
Content-Type: application/json
X-EFM-Service-Ticket: dummy
Host: localhost:8080

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 1002

{
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null,
  "body" : {
    "availableEndpoints" : [ "/user/view", "/user/setting/description/update", "/user-menu", "/user/setting/theme", "/user/setting/preference", "/market-service/objection/statuses", "/user/time", "/market-service/report/transaction-value/export", "/user/setting", "/available/endpoint", "/user/setting/description", "/default-service/contracts", "/report/market-order-quantity/contract/query", "/market-service/report/transaction-value/query", "/user/setting/description/list", "/report/market-order-quantity/contract/export", "/organization/user/limit/list", "/pys-proxy-service/before-business-day", "/user/setting/match-notification", "/default-service/organizations", "/pys-proxy-service/next-business-day", "/participant/market-clearing-price/according-last-seventh-time", "/organization/user/limit/type", "/user/get-in-default", "/organization/user/limit/list/export" ]
  }
}

22. Organizations REST Service

22.1. Query Organization

Request

POST /organization-service/organization/user-codes HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 26
Host: localhost:8080

{
  "organizationId" : 1
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 159

{
  "body" : {
    "userCodes" : [ "USERCODE" ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

22.2. Get Organization by ID and Date

Request

POST /participant/organization/query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 115
Host: localhost:8080

{
  "date" : "2022-04-04",
  "nameType" : "PARTICIPANT",
  "orgId" : [ 10693 ],
  "registrationStatus" : "ACTIVE"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY

23. Participant REST Service

23.1. Query Participant

Request

POST /organization-service/participation/organization-query HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 77
Host: localhost:8080

{
  "date" : "2022-04-20",
  "nameType" : "NAMETYPE",
  "status" : "STATUS"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 210

{
  "body" : {
    "organizations" : [ {
      "text" : "ORGANIZATION",
      "value" : 10
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

23.2. Contract Lookup

Request

POST /market-service/contract/lookup-filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 358
Host: localhost:8080

{
  "cascadingDateEnd" : "2022-04-20",
  "cascadingDateStart" : "2022-04-20",
  "contractStatus" : "CONTRACTSTATUS",
  "contractType" : [ "CONTRACTTYPE" ],
  "deliveryPeriod" : [ "DELIVERYPERIOD" ],
  "deliveryPeriodEnd" : "2022-04-20",
  "deliveryPeriodStart" : "2022-04-20",
  "listPreviousAllowedContracts" : true,
  "orgId" : 100,
  "region" : "REGION"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 223

{
  "body" : {
    "contractTypeLookups" : [ {
      "text" : "CONTRACTTYPELOOKUP",
      "value" : 100
    } ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

Settlement-Collateral Operations

24. Reports Endpoints

24.1. All values for Credit items

Request

POST /settlement-service/report/payable HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 91
Host: localhost:8080

{
  "organizationId" : 13397,
  "reconciliationPeriod" : "2022-06-01",
  "region" : "TR1"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 559

{
  "body" : {
    "dailyDetails" : null,
    "payableItemReport" : {
      "correctionAmount" : 0,
      "delayRaiseAmount" : 0,
      "marketOperationFee" : null,
      "purchaseAmount" : 0,
      "tghContributionAmount" : 0,
      "tghDelayRaiseAmount" : 0,
      "total" : 0
    },
    "purchaseAmountTotal" : null,
    "purchasePriceTotal" : null,
    "receivableItemReport" : null,
    "salesAmountTotal" : null,
    "salesPriceTotal" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

24.2. All values for Payable items

Request

POST /settlement-service/report/receivable HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 90
Host: localhost:8080

{
  "organizationId" : 9447,
  "reconciliationPeriod" : "2022-09-01",
  "region" : "TR1"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 521

{
  "body" : {
    "dailyDetails" : null,
    "payableItemReport" : null,
    "purchaseAmountTotal" : null,
    "purchasePriceTotal" : null,
    "receivableItemReport" : {
      "correctionAmount" : 0,
      "delayRaiseAmount" : 0,
      "salesAmount" : 0,
      "tghContributionAmount" : 0,
      "tghDelayRaiseAmount" : 0,
      "total" : 0
    },
    "salesAmountTotal" : null,
    "salesPriceTotal" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

24.3. Daily detail data

Request

POST /settlement-service/report/daily HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 91
Host: localhost:8080

{
  "organizationId" : 10374,
  "reconciliationPeriod" : "2022-10-01",
  "region" : "TR1"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 4929

{
  "body" : {
    "dailyDetails" : [ {
      "day" : "2022-10-01",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-02",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-03",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-04",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-05",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-06",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-07",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-08",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-09",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-10",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-11",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-12",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-13",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-14",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-15",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-16",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-17",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-18",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-19",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-20",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-21",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-22",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-23",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-24",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-25",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-26",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-27",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-28",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-29",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-30",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "day" : "2022-10-31",
      "purchaseAmount" : 0.0,
      "purchasePrice" : 0.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    } ],
    "payableItemReport" : null,
    "purchaseAmountTotal" : 0.0,
    "purchasePriceTotal" : 0.0,
    "receivableItemReport" : null,
    "salesAmountTotal" : 0.0,
    "salesPriceTotal" : 0.0
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

24.4. Hourly detail data

Request

POST /settlement-service/report-hourly/filter HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 73
Host: localhost:8080

{
  "date" : "2022-09-01",
  "organizationId" : 166,
  "region" : "TR1"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 3878

{
  "body" : {
    "hourlyDetails" : [ {
      "hour" : "00:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "01:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "02:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "03:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "04:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "05:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "06:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "07:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "08:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "09:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "10:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "11:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "12:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "13:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "14:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "15:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "16:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "17:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "18:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "19:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "20:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "21:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "22:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    }, {
      "hour" : "23:00:00",
      "purchaseAmount" : 5890.0,
      "purchasePrice" : 5.0,
      "salesAmount" : 0.0,
      "salesPrice" : 0.0
    } ],
    "purchaseAmountTotal" : 141360.0,
    "purchasePriceTotal" : 120.0,
    "salesAmountTotal" : 0,
    "salesPriceTotal" : 0
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

24.5. PIU detail

Request

POST /settlement-service/report/piu HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 75
Host: localhost:8080

{
  "date" : "2022-09-01",
  "organizationId" : 10374,
  "region" : "TR1"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 308

{
  "body" : {
    "piuDetail" : {
      "annualParticipationFee" : 0.0,
      "defaultManagementCost" : 0.0,
      "objectionFee" : 0.0,
      "operationPrice" : 0.0,
      "totalPiu" : 0.0
    }
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

24.6. PIU Processing fee detail

Request

POST /settlement-service/report/transaction-fee HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 91
Host: localhost:8080

{
  "organizationId" : 10374,
  "reconciliationPeriod" : "2022-09-01",
  "region" : "TR1"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 330

{
  "body" : {
    "marketMakingDiscountAmountTotal" : 0.0,
    "mofAmountTotal" : 0.0,
    "netAmountTotal" : 0.0,
    "purchaseAmountPiuTotal" : 0.0,
    "salesAmountPiuTotal" : 0.0,
    "transactionFeeDetails" : [ ]
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

24.7. Default management cost detail

Request

POST /settlement-service/report/default-management-cost HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 91
Host: localhost:8080

{
  "organizationId" : 10374,
  "reconciliationPeriod" : "2022-09-01",
  "region" : "TR1"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 329

{
  "body" : {
    "defaultManagementCostDetails" : [ ],
    "defaultManagementCostTotal" : 0.0,
    "openPositionsMwhPayableTotal" : 0.0,
    "openPositionsMwhReceivableTotal" : 0.0,
    "openPositionsMwhTotal" : 0.0
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

24.8. Settlement invoice for for payable

Request

POST /settlement-service/invoice/payable HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 71
Host: localhost:8080

{
  "organizationId" : 10374,
  "reconciliationPeriod" : "2022-10-01"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 145

{
  "body" : {
    "items" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}

24.9. Settlement invoice for for receivable

Request

POST /settlement-service/invoice/receivable HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-EFM-Service-Ticket: dummy
Content-Length: 71
Host: localhost:8080

{
  "organizationId" : 10374,
  "reconciliationPeriod" : "2022-10-01"
}

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 145

{
  "body" : {
    "items" : null
  },
  "resultCode" : "0",
  "resultDescription" : "OK",
  "resultType" : "SUCCESS",
  "transactionId" : null
}