# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.10.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.9.0...@energyweb/exchange@1.10.0) (2021-08-30)


### Bug Fixes

* **deps:** update dependency @nestjs/config to v1 ([5226f56](https://github.com/energywebfoundation/origin/commit/5226f56898771fc093590bc0f337296496e945ba))
* **deps:** update dependency @nestjs/config to v1.0.1 ([3463c6f](https://github.com/energywebfoundation/origin/commit/3463c6f197398c159e88b078a9b8581c5f450429))
* **deps:** update dependency @nestjs/passport to v7.1.6 ([e6c99f4](https://github.com/energywebfoundation/origin/commit/e6c99f47c789a30ba3c73969854ebe956838b3be))
* **deps:** update dependency @nestjs/schedule to v1 ([2817ea0](https://github.com/energywebfoundation/origin/commit/2817ea077d2e2c9cd5eb96f5120c204e5b509cb6))
* **deps:** update dependency @nestjs/schedule to v1.0.1 ([43e71b4](https://github.com/energywebfoundation/origin/commit/43e71b464331fb32c38a0937c17aa297e6d4e363))
* **deps:** update dependency @nestjs/swagger to v4.8.1 ([daa023b](https://github.com/energywebfoundation/origin/commit/daa023bdcd20b78aa3dd8af966c8127b57b9d9ad))
* **deps:** update dependency @nestjs/swagger to v4.8.2 ([d17e433](https://github.com/energywebfoundation/origin/commit/d17e433f1fa2a07ea50bd26b423652670436c6ae))
* **deps:** update dependency ethers to v5.1.3 ([e7f4abb](https://github.com/energywebfoundation/origin/commit/e7f4abb8109303814e5727976732c528dcfa342d))
* **deps:** update dependency ethers to v5.1.4 ([71f379b](https://github.com/energywebfoundation/origin/commit/71f379b020e8e6bcd1b4b6f117d27e9babc6f93c))
* **deps:** update dependency immutable to v4.0.0-rc.14 ([f5a076c](https://github.com/energywebfoundation/origin/commit/f5a076c225ec45f250a27daef8b9e40c87013d8f))
* **deps:** update dependency pg to v8.6.0 ([5b16742](https://github.com/energywebfoundation/origin/commit/5b167423919ee4b238cb022c27a89a0d920f318b))
* **deps:** update dependency pg to v8.7.1 ([033293f](https://github.com/energywebfoundation/origin/commit/033293f0c203102f03b53fe50a519a60ebe170de))
* **deps:** update dependency polly-js to v1.8.2 ([af8a3db](https://github.com/energywebfoundation/origin/commit/af8a3dbb75977dadc182f2f2b3595d91766f967f))
* **deps:** update dependency rxjs to v6.6.7 ([5adc1e2](https://github.com/energywebfoundation/origin/commit/5adc1e219b360b4e3a28e037a1461f5719329cfd))
* **deps:** update dependency typeorm to v0.2.32 ([e2f606e](https://github.com/energywebfoundation/origin/commit/e2f606ee89aec9a5db84138b8df369a0561e08b1))
* **deps:** update dependency typeorm to v0.2.34 ([8c6f39c](https://github.com/energywebfoundation/origin/commit/8c6f39cffcce4cc3d6c3b65daa1a1a883e41aaac))
* **deps:** update ethers ([785e3ef](https://github.com/energywebfoundation/origin/commit/785e3efbe95fbde1984d80d8a50293d123364803))
* **deps:** update ethers ([d40f585](https://github.com/energywebfoundation/origin/commit/d40f585815ede90cc3ce1a901aa35bb3e9ebde3d))
* **deps:** update ethers to v5.3.0 ([72c970e](https://github.com/energywebfoundation/origin/commit/72c970e69d220250e7d9d3f36ac653a3610d6825))
* **deps:** update nest monorepo to v7.6.17 ([ecc84c0](https://github.com/energywebfoundation/origin/commit/ecc84c0ce3d2d2e47ebe7c667d53adbc6fdd9f6b))
* **deps:** update nest monorepo to v7.6.18 ([6835926](https://github.com/energywebfoundation/origin/commit/6835926dff7764d275b2006084e344c37948b7fa))
* **exchange:** Allow transfers with different directions to have the same txHash (needed for send + deposit) ([e22e0cd](https://github.com/energywebfoundation/origin/commit/e22e0cdea538cee70e5e649d1056be442cfc2c25))
* revert ethers versions to working and disable updates ([49753f0](https://github.com/energywebfoundation/origin/commit/49753f0aed3f5e32e861b7bbe1d4a85bd900dce9))


### Features

* Exchange direction Send ([6823218](https://github.com/energywebfoundation/origin/commit/682321845409698184dd4dfc001670ff48104f2c))
* **exchange:** Bulk claim from the exchange ([f9682cc](https://github.com/energywebfoundation/origin/commit/f9682cc10a77b17b46cc2538dcdd837deed941f6))





# [1.9.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.8.0...@energyweb/exchange@1.9.0) (2021-03-23)


### Bug Fixes

* **deps:** update dependency @nestjs/schedule to v0.4.3 ([c3ade3b](https://github.com/energywebfoundation/origin/commit/c3ade3bf14d6b73dedc9c836f80d058b86e4246b))
* **deps:** update dependency @nestjs/swagger to v4.7.13 ([eba5075](https://github.com/energywebfoundation/origin/commit/eba5075f1578f2ae9d382cc4a955487eaa50d3bb))
* **deps:** update dependency @nestjs/swagger to v4.7.15 ([d58375c](https://github.com/energywebfoundation/origin/commit/d58375c74ffc3de71381e7bab7d65b5040340f6d))
* **deps:** update dependency @nestjs/swagger to v4.7.16 ([c240c31](https://github.com/energywebfoundation/origin/commit/c240c31cba4af09d322426ef09e80e89ea561f5d))
* **deps:** update dependency @nestjs/swagger to v4.8.0 ([f3baec9](https://github.com/energywebfoundation/origin/commit/f3baec98c786542549f87b0d5f2e8c3d425ea638))
* **deps:** update dependency ethers to v5.0.31 ([2c4a3a0](https://github.com/energywebfoundation/origin/commit/2c4a3a002e113ab28d1a452ed77b1b4b2a8436e6))
* **deps:** update dependency polly-js to v1.8.1 ([85e1d14](https://github.com/energywebfoundation/origin/commit/85e1d1427577c774c0af521ccfc8a04420a6c8c6))
* **deps:** update dependency rxjs to v6.6.6 ([8cbb567](https://github.com/energywebfoundation/origin/commit/8cbb567986449af7be85aab7fde3ea0eff6d3490))
* **deps:** update dependency typeorm to v0.2.31 ([b2d4b30](https://github.com/energywebfoundation/origin/commit/b2d4b30d90985597a1b55fb25860b5259769cffc))
* **deps:** update nest monorepo to v7.6.12 ([bacde48](https://github.com/energywebfoundation/origin/commit/bacde48160b73749f5e476b73bbafcef55902aba))
* **deps:** update nest monorepo to v7.6.14 ([9b0ca43](https://github.com/energywebfoundation/origin/commit/9b0ca4312c548681e752ba0e49d0a5a03350ae2e))
* **exchange:** removing supply returns 404 error ([bd2e14a](https://github.com/energywebfoundation/origin/commit/bd2e14ad1402c5a3e16ccc460ec6fa04bbb073b4))


### Features

* clear matching engine cache ([670ef80](https://github.com/energywebfoundation/origin/commit/670ef8040c3cb30b681ad61575e486f72e1ae9bd))
* **exchange:** add swagger definitions ([cd0faa0](https://github.com/energywebfoundation/origin/commit/cd0faa03c7f4887a6302919f9f4baf8733dd05df))
* **exchange:** supply settings ([4ce37be](https://github.com/energywebfoundation/origin/commit/4ce37be1439070a374c0f874fcbbe79b39506306))





# [1.8.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.7.1...@energyweb/exchange@1.8.0) (2021-02-12)


### Bug Fixes

* **deps:** update dependency @nestjs/config to v0.6.3 ([4991dfb](https://github.com/energywebfoundation/origin/commit/4991dfb918ce7efb6d0a8bd72a011c825b3aec46))
* **deps:** update dependency ethers to v5.0.29 ([149041b](https://github.com/energywebfoundation/origin/commit/149041b4ca3648f1decf9e1acb5f7bb5d6fd721a))
* **deps:** update nest monorepo to v7.6.11 ([daee156](https://github.com/energywebfoundation/origin/commit/daee156b9c315c527311f0c78ffbdf4226b6785a))


### Features

* **exchange:** add request claim feature ([048f5cb](https://github.com/energywebfoundation/origin/commit/048f5cb10e567ee6bf9e507c592fe0c05b2bb82b))





## [1.7.1](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.7.0...@energyweb/exchange@1.7.1) (2020-12-04)

**Note:** Version bump only for package @energyweb/exchange





# [1.7.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.6.0...@energyweb/exchange@1.7.0) (2020-11-30)


### Bug Fixes

* add a body definition to all missing @Body() in requests ([6afc5a5](https://github.com/energywebfoundation/origin/commit/6afc5a5b8eb02d9be21035b34431d88d690bcda4))


### Features

* **exchange:** rich Swagger definitions + add prefix to all exchange tables ([9c94e46](https://github.com/energywebfoundation/origin/commit/9c94e46ae42ecbcb6fcde3d08bab0155fd8c7fd7))
* **origin-organisation-irec-api:** added contact details fields ([b0bb283](https://github.com/energywebfoundation/origin/commit/b0bb2839b3da5d4ed684293c8aed262c8221d67a))





# [1.6.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.5.4...@energyweb/exchange@1.6.0) (2020-11-20)


### Bug Fixes

* **deps:** update dependency @nestjs/swagger to v4.7.2 ([1b127f8](https://github.com/energywebfoundation/origin/commit/1b127f8504fb5a15bdcfc3abd2f0d4052cb26f73))
* **deps:** update dependency @nestjs/swagger to v4.7.3 ([1285463](https://github.com/energywebfoundation/origin/commit/128546350457dcedfba2087441dd5b93097cdced))
* **deps:** update dependency ethers to v5.0.15 ([7205cfd](https://github.com/energywebfoundation/origin/commit/7205cfd3b823730beed77fa8195b7c9c06898a88))
* **deps:** update dependency typeorm to v0.2.28 ([8e9a26c](https://github.com/energywebfoundation/origin/commit/8e9a26c3a9c6218ad12fcd6c8ce6b71f767c8731))
* **deps:** update dependency typeorm to v0.2.29 ([49232fb](https://github.com/energywebfoundation/origin/commit/49232fbd085e86a5e1df943aa917fe5ed86bff27))
* **deps:** update nest monorepo to v7.5.2 ([adf4996](https://github.com/energywebfoundation/origin/commit/adf49962f675ef88237af96baef0093057d0697f))
* **exchange:** ask processing throttling ([c14e100](https://github.com/energywebfoundation/origin/commit/c14e1000e560311cff121942bb208969b00af0a3))
* **exchange:** block cancellation of bids that are part of the demand ([3ad7d22](https://github.com/energywebfoundation/origin/commit/3ad7d2226f97e918c056cc0e50a979585babba26))
* **exchange:** withdrawal processing ([f191d29](https://github.com/energywebfoundation/origin/commit/f191d296e6e8ae09d0339cf95e8d1ea266c1c0c5))


### Features

* **exchange:** added env variable for timezone ([5baf939](https://github.com/energywebfoundation/origin/commit/5baf9392bc25f1a95ec1f6b2763cdecbf14a28a9))
* **exchange:** demand replace ([8cc795f](https://github.com/energywebfoundation/origin/commit/8cc795f9e276d6ef9e1f76498066697881afdf75))
* **exchange:** demand summary api ([8c7045e](https://github.com/energywebfoundation/origin/commit/8c7045e3932835cea89b82d31dca2c0992f50c8f))





## [1.5.4](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.5.3...@energyweb/exchange@1.5.4) (2020-10-02)


### Bug Fixes

* **deps:** update dependency @nestjs/schedule to v0.4.1 ([7ad7102](https://github.com/energywebfoundation/origin/commit/7ad710249bb04207313aac6e71508c7ecca2425a))
* **deps:** update dependency @nestjs/swagger to v4.6.1 ([40eb9d1](https://github.com/energywebfoundation/origin/commit/40eb9d129356ac2ebf809aec3d7a54b72f1c3530))
* **deps:** update dependency @nestjs/typeorm to v7.1.1 ([b2253c3](https://github.com/energywebfoundation/origin/commit/b2253c3f3560b00de324fc76996530890b35837a))
* **deps:** update dependency @nestjs/typeorm to v7.1.4 ([f0f39d4](https://github.com/energywebfoundation/origin/commit/f0f39d40dfde6c0d079575de7af4d4aed0e8f160))
* **deps:** update dependency typeorm to v0.2.26 ([bf1a256](https://github.com/energywebfoundation/origin/commit/bf1a2563a1c950bacfac2ad4633094e170db9161))
* **deps:** update nest monorepo to v7.4.3 ([f141326](https://github.com/energywebfoundation/origin/commit/f141326309427651b0ac43e4f90fcd5d62c355bc))
* **exchange:** bundles volume update, more tests ([a07b136](https://github.com/energywebfoundation/origin/commit/a07b136865bb47e4093ad21e1ad18d547b7f899f))
* **exchange:** enable setting a custom minimum balance for withdrawal wallet ([ad673ca](https://github.com/energywebfoundation/origin/commit/ad673ca420d3da819b2e6f8de00a80cd053cce52))
* **exchange:** opt-in use of pipes and interceptors ([148df53](https://github.com/energywebfoundation/origin/commit/148df531746cf2812eef9a8e36da8d37637527d1))





## [1.5.3](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.5.2...@energyweb/exchange@1.5.3) (2020-08-25)

**Note:** Version bump only for package @energyweb/exchange





## [1.5.2](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.5.1...@energyweb/exchange@1.5.2) (2020-08-12)

**Note:** Version bump only for package @energyweb/exchange





## [1.5.1](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.5.0...@energyweb/exchange@1.5.1) (2020-08-10)


### Bug Fixes

* **deps:** update dependency ethers to v5.0.8 ([c69bde0](https://github.com/energywebfoundation/origin/commit/c69bde05c4f0eba5dbc49833f266af24c84c0187))





# [1.5.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.4.0...@energyweb/exchange@1.5.0) (2020-08-06)


### Bug Fixes

* **deps:** update dependency class-transformer to v0.3.1 ([e827bbb](https://github.com/energywebfoundation/origin/commit/e827bbbc6f357c135d2d803bb82ad8774914913a))
* **deps:** update dependency rxjs to v6.6.2 ([1849e03](https://github.com/energywebfoundation/origin/commit/1849e030c7cce6bf4d4063f3c6d96d98fbb96041))
* **deps:** update nest monorepo to v7.4.2 ([241f045](https://github.com/energywebfoundation/origin/commit/241f04525f8d09f8bd464f979933390ad6a4bb2a))
* **exchange:** inject ConfigService into validator ([864af1e](https://github.com/energywebfoundation/origin/commit/864af1e6fa97d94491dd6d02d9d2322243ea4d2c))
* **exchange:** lint ([654c44a](https://github.com/energywebfoundation/origin/commit/654c44ab4fc4f0db8bba71af91754714c55a7672))
* **exchange:** linting ([d023034](https://github.com/energywebfoundation/origin/commit/d023034548cc7bfd9bd21a8a58228cb706620287))
* **exchange:** type bundleItemDTO before validation ([9336c69](https://github.com/energywebfoundation/origin/commit/9336c69d317cfc17682840d2d25fd531b6e82ee4))
* **exchange:** typify nested objects ([83ca5b8](https://github.com/energywebfoundation/origin/commit/83ca5b88b8ec26be1173879d09e6283cc1419885))
* **exchange:** unconfirmed withdrawals processing ([86fcf4d](https://github.com/energywebfoundation/origin/commit/86fcf4d49b13d3a2c110f5077b376e5547260d29))


### Features

* **exchange:** add excludeEnd to CreateDemandDTO ([85f97ed](https://github.com/energywebfoundation/origin/commit/85f97edfdf76ffc5cb6a86b7390dc5255eabcee7))
* **exchange:** make excludeEnd optional ([49f9650](https://github.com/energywebfoundation/origin/commit/49f96504882c2e02d04181c51391b58db1408870))
* **exchange:** positiveBNStringValidator test ([096ac67](https://github.com/energywebfoundation/origin/commit/096ac67692302f85a973e21c1ca8b90432222406))
* **exchange:** validate bundle order demand volume ([aca1490](https://github.com/energywebfoundation/origin/commit/aca1490e587efd49bbacc4b60ce4708517355c8e))
* **origin-ui-core:** add intUnitsOfEnergy validator ([e6a3cfd](https://github.com/energywebfoundation/origin/commit/e6a3cfd58251c047ca077297a8ad088e4fe9dce0))





# [1.4.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.3.0...@energyweb/exchange@1.4.0) (2020-07-16)


### Bug Fixes

* **deps:** update nest monorepo to v7.3.2 ([875bb1b](https://github.com/energywebfoundation/origin/commit/875bb1b17fee5647d921f6771a58a4aa55aec59d))


### Features

* **origin-ui-core:** filter ask by facility ([097e9a3](https://github.com/energywebfoundation/origin/commit/097e9a30f7ab6d91ae7eeacad0735611421845fb))





# [1.3.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.2.1...@energyweb/exchange@1.3.0) (2020-07-08)


### Bug Fixes

* **deps:** update dependency @nestjs/passport to v7.1.0 ([2ca9c9f](https://github.com/energywebfoundation/origin/commit/2ca9c9f57cd34871ce061f0fca2f873bf17d9e99))
* **deps:** update dependency @nestjs/swagger to v4.5.11 ([aa5aa8e](https://github.com/energywebfoundation/origin/commit/aa5aa8ee66485206df97c99f8bd112dc77329206))
* **deps:** update dependency @nestjs/swagger to v4.5.12 ([427973d](https://github.com/energywebfoundation/origin/commit/427973dcd91cb0c07c3f135c637256bc2d8cc4be))
* **deps:** update dependency rxjs to v6.6.0 ([851151d](https://github.com/energywebfoundation/origin/commit/851151dd110a2b11fc9b491e491c4a152aaac807))
* **deps:** update nest monorepo to v7.3.1 ([a7777b8](https://github.com/energywebfoundation/origin/commit/a7777b85aa0c56df661b1b3f24467cc8e95b2051))
* **exchange:** bundles accounting ([e2e3b1c](https://github.com/energywebfoundation/origin/commit/e2e3b1ca02d014de4a6d26fa1cf4b7dff78adba7))
* **exchange:** fix split and buy ([2841db1](https://github.com/energywebfoundation/origin/commit/2841db12df21805ce0d9d8373c6b34cacdc5dfd9))
* **exchange:** remove ActiveUserGuard from get account ([5883e2b](https://github.com/energywebfoundation/origin/commit/5883e2b10b4a6eea8e1bec409c68ef739dc94d0f))
* **exchange:** remove comments ([6bf30b9](https://github.com/energywebfoundation/origin/commit/6bf30b9fa9fb484a352e18f1fe35f4e9b491d1bb))
* **exchange:** remove logs ([99e3157](https://github.com/energywebfoundation/origin/commit/99e315711ed21663924c06125c5e16f0d5cd1c2f))
* **exchange:** remove role checking ([2755257](https://github.com/energywebfoundation/origin/commit/27552579abbb2a294f184fb5c5ee55c92e258f20))
* **exchange:** revert fix ([b31a318](https://github.com/energywebfoundation/origin/commit/b31a318216fe6a4d4d7c373b3eb4a2219c6d946b))
* **exchange:** rounding errors due to too low precision ([c0faf5b](https://github.com/energywebfoundation/origin/commit/c0faf5bb04436e732cd254075d77dbc250cc9670))
* **exchange:** simplify available bundle filtering ([18f1d0e](https://github.com/energywebfoundation/origin/commit/18f1d0e3d2cba01e93142c57799877c40d471417))
* **exchange:** update bundle on buy bundle ([d82b504](https://github.com/energywebfoundation/origin/commit/d82b504f5d96b54abc8208c4dcccee8989493362))
* **exchange:** use mod instead of fractional of BN ([bdb1e35](https://github.com/energywebfoundation/origin/commit/bdb1e3515d8f9ec26f591de5277906f20589a4a5))
* **exchange:** validity start/end date as string ([662d691](https://github.com/energywebfoundation/origin/commit/662d691b3843191d5f8581bac2b192eb61db5a4a))
* **origin-backend:** change user status to active ([6ba9c20](https://github.com/energywebfoundation/origin/commit/6ba9c209694ae58ce493d286cec39bd58e49e821))


### Features

* **exchange:** add test ([13c07b2](https://github.com/energywebfoundation/origin/commit/13c07b21b284e157d99712164296c1968fba9420))
* **exchange:** allow to configure matchingengine price picking strategy ([e2fbbe0](https://github.com/energywebfoundation/origin/commit/e2fbbe0854495e9a186adfaf0cbe8c888b799947))
* **exchange:** Bundles possible splits API ([1b88519](https://github.com/energywebfoundation/origin/commit/1b885195b95bd1ae808a361bcbe89e5d31001d54))





## [1.2.1](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.2.0...@energyweb/exchange@1.2.1) (2020-06-16)

**Note:** Version bump only for package @energyweb/exchange





# [1.2.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.1.0...@energyweb/exchange@1.2.0) (2020-06-16)


### Bug Fixes

* **deps:** update dependency @nestjs/swagger to v4.5.10 ([ed9d45c](https://github.com/energywebfoundation/origin/commit/ed9d45c9e653a9cf1b0e762616ef60decbdcf5c6))
* **deps:** update dependency @nestjs/swagger to v4.5.9 ([9a40842](https://github.com/energywebfoundation/origin/commit/9a408422324094041700053cc92b47faf040f5f1))
* **deps:** update dependency @nestjs/typeorm to v7.1.0 ([960d52b](https://github.com/energywebfoundation/origin/commit/960d52b0dde4709bf6da1dcf4e317f445a6c76be))
* **deps:** update dependency typeorm to v0.2.25 ([d1ce442](https://github.com/energywebfoundation/origin/commit/d1ce4428931bdfede4d73d7016fcb1cb8d564a7d))
* **exchange:** create certificate before withdrawal ([220d3f6](https://github.com/energywebfoundation/origin/commit/220d3f6d17b7d00a0b66c5ac6567986899d94c2e))
* **exchange:** do not post for sale when disabled ([224ce67](https://github.com/energywebfoundation/origin/commit/224ce677d60f251b6b9bd3f387c5ab0909ad60ce))
* **exchange:** wrapper init order ([4413088](https://github.com/energywebfoundation/origin/commit/441308835ddee32b16a1660dbb5f02759e1419ac))
* **exchange:** wrong TradePersistedEvent type emit ([688df0f](https://github.com/energywebfoundation/origin/commit/688df0f7c5a2ff6680da2009c919647d0f7032dd))
* **origin-ui-core:** compare _to lowercased ([4c63dd8](https://github.com/energywebfoundation/origin/commit/4c63dd8cfcd9420ecf1b66e7a6d61056e35c7ff9))
* **origin-ui-core:** move DEFAULT ENERGY to .env ([7a15d7f](https://github.com/energywebfoundation/origin/commit/7a15d7fd4861667081c1ea6b4013211191a99b5e))


### Features

* **exchange:** introduce eventbus for trades events ([02fde8b](https://github.com/energywebfoundation/origin/commit/02fde8b541f6053502a9eed1590cbf94205a6813))
* **exchange:** TradePersistedEvent ([67d6bd5](https://github.com/energywebfoundation/origin/commit/67d6bd5cf804bdb2afa1cbd4a46a38aef73f1ec8))
* **oring-ui-core:** add withdraw saga ([36403c3](https://github.com/energywebfoundation/origin/commit/36403c3fb0acc50b70e7d1350bcef0e3b05062ec))





# [1.1.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@1.0.0...@energyweb/exchange@1.1.0) (2020-05-29)


### Bug Fixes

* **deps:** update dependency @nestjs/config to v0.4.2 ([2c93aef](https://github.com/energywebfoundation/origin/commit/2c93aef9b9820647fdb9df49f25cdf4c41c6a737))
* **deps:** update dependency @nestjs/config to v0.5.0 ([e57cb73](https://github.com/energywebfoundation/origin/commit/e57cb73efa867020dcd4414a0ad4694995a42a80))
* **deps:** update dependency @nestjs/schedule to v0.4.0 ([377e56b](https://github.com/energywebfoundation/origin/commit/377e56b70737149294d070532f5edd93fedb8290))
* **deps:** update dependency @nestjs/swagger to v4.5.7 ([459d351](https://github.com/energywebfoundation/origin/commit/459d351dad5bc870401403b104c2c54f3b9b9164))
* **deps:** update nest monorepo to v7.0.13 ([ea1133d](https://github.com/energywebfoundation/origin/commit/ea1133dd1efdcad9083b19b622884918dd802bee))
* **deps:** update nest monorepo to v7.1.0 ([78be769](https://github.com/energywebfoundation/origin/commit/78be769e5b1f8a27e16bb65ff2c879b20a03bce8))
* **exchange:** accounting tests ([d1a6faa](https://github.com/energywebfoundation/origin/commit/d1a6faa93aa777665d14c420581a1e665453a873))
* **exchange:** amount serialization ([ed18baa](https://github.com/energywebfoundation/origin/commit/ed18baa0cf046cde9daaa480a84726098ee8dabd))
* **exchange:** at least 2 items in bundle, should not be able to buy cancelled bundles ([f27ad4e](https://github.com/energywebfoundation/origin/commit/f27ad4e1881099e43e11c6535b5eaed1247d2d99))
* **exchange:** correct logged in user id. improve tests ([37cf9a1](https://github.com/energywebfoundation/origin/commit/37cf9a18a9e6c2487b60ee5a64737e1145ee3d1a))
* **exchange:** do not return account assets with 0 amount ([dabaf30](https://github.com/energywebfoundation/origin/commit/dabaf30d7e6e09e2eb031c07d797e0f59c7c0d1e))
* **exchange:** e2e orders test ([c1d5b32](https://github.com/energywebfoundation/origin/commit/c1d5b32dc44e8ed5035d411149026b6fa84104de))
* **exchange:** make trade creation deterministic ([3dad8fd](https://github.com/energywebfoundation/origin/commit/3dad8fdf3824ca9999d33f63e1089daedec570af))
* **exchange:** missing lint-staged. linter errors ([e9087bf](https://github.com/energywebfoundation/origin/commit/e9087bf26dce0ea4a48bb086d7944453550f691e))
* **exchange:** negative locked amounts ([715b726](https://github.com/energywebfoundation/origin/commit/715b7268e5206358e5a803cade7b2d3bc38706cf))
* **exchange:** restrict withdrawals to org admin ([9045f47](https://github.com/energywebfoundation/origin/commit/9045f47284784a9bd1560148fc278c5a28def3e9))


### Features

* **exchange:** bundles cancellation ([0371bae](https://github.com/energywebfoundation/origin/commit/0371baee21272fc7a43046b5121016ff31460327))
* **exchange:** bundles trading ([376b6ba](https://github.com/energywebfoundation/origin/commit/376b6ba4b3e7487b731e5bcbd9d27d81a4ba4580))
* **exchange:** extended last trade information ([c576896](https://github.com/energywebfoundation/origin/commit/c5768969ff9579a5f0693db412906a5752d4d183))
* **exchange:** last traded price based on product filter ([c24d34b](https://github.com/energywebfoundation/origin/commit/c24d34b226710f044cafc0b1e873275012cc359e))
* **exchange:** traded bundles endpoint ([140a743](https://github.com/energywebfoundation/origin/commit/140a7430823d32ae8a91319cca24e109a47404e0))





# [1.0.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@0.7.0...@energyweb/exchange@1.0.0) (2020-05-15)


### Bug Fixes

* fixate tslib version to 1.11.2 to avoid typeorm issue ([274d4e9](https://github.com/energywebfoundation/origin/commit/274d4e9717f4c8f4b258a56331724330dcc3685b))
* **exchange:** register correct Account object, rename non-entity Account to AccountDTO ([c6ea24e](https://github.com/energywebfoundation/origin/commit/c6ea24e855bc0d6009f0354ac5fce15658280c47))


### chore

* **exchange:** user ownerId for ownership based queries ([28c028b](https://github.com/energywebfoundation/origin/commit/28c028b5ae8362cb3fe04e0655d4a2c0325b6064))


### Features

* **exchange:** create ask on deposit when autopostforsale is enabled ([bb309ca](https://github.com/energywebfoundation/origin/commit/bb309cae2ed8af868568f82b98f1ae7d739d005f))
* **exchange:** provide assetId and product with trade ([2854ac2](https://github.com/energywebfoundation/origin/commit/2854ac2c2699684057cd3d5ad5b90c53d1f14b73))


### BREAKING CHANGES

* **exchange:** Since now the ownerId is used to track the ownership of assets in exchange db. Currently ownerId=organizationId which means that organization is mandatory for each user





# [0.7.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@0.6.0...@energyweb/exchange@0.7.0) (2020-04-24)


### Bug Fixes

* **deps:** update dependency @nestjs/swagger to v4.5.2 ([93e7880](https://github.com/energywebfoundation/origin/commit/93e7880da173d97fe20cbc16234aa5b77468ac86))
* **deps:** update dependency class-validator to v0.12.1 ([b5000af](https://github.com/energywebfoundation/origin/commit/b5000af21eb1bc8e1df1eb85cac636cfe5e31adc))
* **deps:** update dependency ts-loader to v7 ([722101a](https://github.com/energywebfoundation/origin/commit/722101a02d82ea125f011de23cd1232e82e7db47))
* **deps:** update nest monorepo to v7.0.8 ([67e8239](https://github.com/energywebfoundation/origin/commit/67e823940e8c671790acbd106af0dc479ec9c23d))
* **exchange:** check dto.generationTo ([5f2f0d2](https://github.com/energywebfoundation/origin/commit/5f2f0d29296c18b344106d0f8d6d55f46edeec26))
* **exchange:** check transaction hash uniqueness ([e6b277a](https://github.com/energywebfoundation/origin/commit/e6b277abd36be930844a978823ba5d8966cc3538))
* **exchange:** generation times parsing ([a1461c7](https://github.com/energywebfoundation/origin/commit/a1461c7e3699ff2b034e14762d0ca30e245095e6)), closes [#856](https://github.com/energywebfoundation/origin/issues/856)
* bin env for migration scripts ([aef836e](https://github.com/energywebfoundation/origin/commit/aef836e0e263076c3bdb6fafb5335a595af9d519))
* migration catalog ([48209a1](https://github.com/energywebfoundation/origin/commit/48209a1357d82e85c0c6a330bde62669dcb98844))
* migrations path fix ([54b4c67](https://github.com/energywebfoundation/origin/commit/54b4c67aec30a2ca469b1218bc824eb66050abc7))


### Features

* add support for device grid operator property ([f6d77f3](https://github.com/energywebfoundation/origin/commit/f6d77f327a7676c3e742cc8a022e5c085cf66e39))
* **exchange:** add GET asset/:id endpoint. Add assetId in orderbook dto object ([235f94c](https://github.com/energywebfoundation/origin/commit/235f94c2b5fc4ff226ed1f0ba58f0302bb658e94))





# [0.6.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@0.5.0...@energyweb/exchange@0.6.0) (2020-04-08)


### Bug Fixes

* **deps:** update dependency @nestjs/config to v0.4.0 ([e7ac62d](https://github.com/energywebfoundation/origin/commit/e7ac62d728b854cb95b5c9293bc0be70d66aa0f8))
* **deps:** update dependency @nestjs/passport to v7 ([be26821](https://github.com/energywebfoundation/origin/commit/be268216980b5b1119638ddae039022aa8e9790a))
* **deps:** update dependency @nestjs/swagger to v4.5.1 ([79e1290](https://github.com/energywebfoundation/origin/commit/79e1290e07a44dc7065badb5e94786f94277e98e))
* **deps:** update dependency class-validator to v0.11.1 ([5607f1c](https://github.com/energywebfoundation/origin/commit/5607f1cb3ef09e7838ac8fcd4e72538e65bf514e))
* **deps:** update dependency ethers to v4.0.46 ([f2efe8e](https://github.com/energywebfoundation/origin/commit/f2efe8ee404bebc2fa111fabeb891797a2a5416e))
* **deps:** update dependency pg to v8 ([550201a](https://github.com/energywebfoundation/origin/commit/550201aaa4d8a2f5ef73973cc8682341f2046238))
* **deps:** update dependency rxjs to v6.5.5 ([2c19e39](https://github.com/energywebfoundation/origin/commit/2c19e39552b2e68a91db9fc8b21127488a9cd576))
* **deps:** update dependency swagger-ui-express to v4.1.4 ([ee966d5](https://github.com/energywebfoundation/origin/commit/ee966d537546dc4b883195a8d2507683bbc3b62d))
* **exchange:** better volume validation. better e2e test for directbuys ([ef9c3cb](https://github.com/energywebfoundation/origin/commit/ef9c3cb21ea2b6698bf0a5d6a80456e7bcdff71a))
* **exchange:** do not mask orders when using for account balance calculation ([6230412](https://github.com/energywebfoundation/origin/commit/6230412eb2bf3c8f6ce9ac8f16c9a7bf26c1ba47))
* **exchange:** dont wait for runner service to start application ([05c69cb](https://github.com/energywebfoundation/origin/commit/05c69cb3605544618070f031562ee8eab1715660))
* **exchange:** fix devicemodule mock ([157c38f](https://github.com/energywebfoundation/origin/commit/157c38f71b9dbe117f817ef5b2c733b97fb817a1))
* **exchange:** public orderbook endpoint ([78f9dd2](https://github.com/energywebfoundation/origin/commit/78f9dd2565a060918c9695005258266b554d55ec))
* disallow bad user request certs flow ([99cec42](https://github.com/energywebfoundation/origin/commit/99cec42a5c813c8d4fb013ea8be1dce46ef1d20a))
* **exchange:** fix for example.sql ([dee775c](https://github.com/energywebfoundation/origin/commit/dee775cbfcc2c2ab5d4b44299ee624329a663993))
* **exchange:** retry truncate after fail ([9f8fe50](https://github.com/energywebfoundation/origin/commit/9f8fe505b86c942fe86307a501e0062678d0d205))
* **exchange:** retry truncate after fail. await for result ([787c488](https://github.com/energywebfoundation/origin/commit/787c4889d2b2376d2ce018c18ff04b9be44fe3fe))
* **exchange:** runInBand mode for e2e tests ([68b2e9a](https://github.com/energywebfoundation/origin/commit/68b2e9ad36f0ad5db63244ff97843171d65eee23))
* **exchnage:** fix external modules resolution. remove app.service ([a4c7c42](https://github.com/energywebfoundation/origin/commit/a4c7c427c88c80f89a7f27a3770fdd5a339fd2fa))
* **origin-backend-app:** fix exchange dependency ([7512f5a](https://github.com/energywebfoundation/origin/commit/7512f5ac525e9cf7030a4b995f3705dc0ec1623b))
* fix exchange nest build ([3234b4f](https://github.com/energywebfoundation/origin/commit/3234b4ff0805c58baa2e234f9e9826a328ccf69f))
* make ContractsLookup part of Configuration ([4fe28c4](https://github.com/energywebfoundation/origin/commit/4fe28c4a79dc17658b067d519c6f0288a6243198))
* remove MarketUser from UI ([9d15489](https://github.com/energywebfoundation/origin/commit/9d15489fa976fb9861337de0b8cbc56a06477203))
* working exchange integration ([49ced59](https://github.com/energywebfoundation/origin/commit/49ced5996c4198fcbf43b8e0eeaf978182ba3a47))


### Features

* **exchange:** default filters to Filter.All ([b3a2084](https://github.com/energywebfoundation/origin/commit/b3a2084faaab02e01cd02cab29cc4c53be3694f9))
* **exchange:** demand creation ([94e6fe5](https://github.com/energywebfoundation/origin/commit/94e6fe5db3263eabf8c4f32f7966e1001095adb8))
* **exchange:** demand status management ([a2dfaed](https://github.com/energywebfoundation/origin/commit/a2dfaed81459dd08e93b04d111430276d54deb25))
* **exchange:** direct buy api. e2e tests fixes ([589580d](https://github.com/energywebfoundation/origin/commit/589580d31810646d7bdb3343c4b3bd0deb15821f))
* **exchange:** grid operator filters and validators ([e413171](https://github.com/energywebfoundation/origin/commit/e413171734aa7dadd52865f0eda0cfade3992b91))
* **exchange:** option to bound the generation time to demand period ([119348e](https://github.com/energywebfoundation/origin/commit/119348e0939ffe6965035aec19e86963792ca2a3))
* **exchange:** order cancellation api ([9768e76](https://github.com/energywebfoundation/origin/commit/9768e762fabd72d5714d8f1673dd66325765b1f3))
* **exchange:** product filter validation, matching engine service init ([20c3e97](https://github.com/energywebfoundation/origin/commit/20c3e970dcd394c1e2ad0e369e868379cb87f481))
* **exchange:** use device service for device product info ([52c6566](https://github.com/energywebfoundation/origin/commit/52c656638a12d117dafb5e89173b9583855b7d01))
* **exchange:** use product filter type to provide orderbook searching ([6b752f4](https://github.com/energywebfoundation/origin/commit/6b752f4ae6991fc72bf9af13945504d434ed6182))
* **exchange:** using token.data to get generation times and deviceid. integration tests using issuer contract. ([b79fb2d](https://github.com/energywebfoundation/origin/commit/b79fb2d93821d2b98c33a3ffa02449788a7fa24c))
* add new exchange UI ([f0df25c](https://github.com/energywebfoundation/origin/commit/f0df25c9736b99713da1d4b7f53e73a8e7530b84))
* add ORGANIZATION_REMOVED_MEMBER and DEVICE_STATUS_CHANGED email notifications ([384f90f](https://github.com/energywebfoundation/origin/commit/384f90fa18bf9ee7a38648afa28de95ca7f64071))





# [0.5.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@0.4.0...@energyweb/exchange@0.5.0) (2020-03-16)


### Bug Fixes

* **deps:** update dependency @nestjs/config to v0.3.0 ([4cdd97b](https://github.com/energywebfoundation/origin/commit/4cdd97bf62bcee3249535f90ca573fb2024b5a98))
* **deps:** update dependency @nestjs/schedule to v0.3.0 ([2c0f313](https://github.com/energywebfoundation/origin/commit/2c0f3139d82d9c651543a0e812e098897ae43c3b))
* **deps:** update dependency @nestjs/swagger to v4.3.2 ([c8cf2fe](https://github.com/energywebfoundation/origin/commit/c8cf2fe4cce3772f4c38f0323019d93f44f68bf5))
* **deps:** update dependency @nestjs/typeorm to v6.3.4 ([f21e526](https://github.com/energywebfoundation/origin/commit/f21e526e68a2942a0cb50c4f5712531432d96279))
* **deps:** update nest monorepo to v6.11.11 ([8d93078](https://github.com/energywebfoundation/origin/commit/8d93078773c86dd04ffbf5419fa0b5fc94a6b7bf))
* **exchange:** downgrades typeorm to 0.2.22 due to start errors ([5322bf7](https://github.com/energywebfoundation/origin/commit/5322bf7a56ed2d9f2daebd62fe565c91024b0c51))
* **exchange:** use ProductDTO for complex searching ([1f7a33f](https://github.com/energywebfoundation/origin/commit/1f7a33fac1f41239aa90af1603b3964d647fe34e))


### Features

* **exchange:** orders endpoint, relations re-design, dtos refactoring ([5b3e7ce](https://github.com/energywebfoundation/origin/commit/5b3e7cecc29edee95ac23151c29202e28971dff3))





# [0.4.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@0.3.1...@energyweb/exchange@0.4.0) (2020-03-02)


### Bug Fixes

* **deps:** update dependency typeorm to v0.2.24 ([fb6c68b](https://github.com/energywebfoundation/origin/commit/fb6c68b324524fe814859f6274428ddc4f938762))
* **deps:** update nest monorepo to v6.11.8 ([2934e78](https://github.com/energywebfoundation/origin/commit/2934e780c8555383427cc7c8e22e69fff59ec10f))


### Features

* **exchange:** nest swagger compiler plugin for swagger metadata ([6742447](https://github.com/energywebfoundation/origin/commit/6742447c7863ede21a4bab92ae858420f3310d5a))
* **exchange:** return userId as part of orderbookdto ([84c3525](https://github.com/energywebfoundation/origin/commit/84c3525ca26898b07e26533d71e7a52ee360d91d))
* **origin-ui-core:** Bids and Asks UI list component ([c08a03b](https://github.com/energywebfoundation/origin/commit/c08a03b911642644f5acb870305ed1efd35e9ce7))





## [0.3.1](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@0.3.0...@energyweb/exchange@0.3.1) (2020-02-17)


### Bug Fixes

* **exchange:** set public access ([daab3af](https://github.com/energywebfoundation/origin/commit/daab3af80c2f5c05f54e93355e41bee3d95b65f8))





# [0.3.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@0.2.0...@energyweb/exchange@0.3.0) (2020-02-17)


### Bug Fixes

* **exchange:** add main section to package.json ([25e9bfc](https://github.com/energywebfoundation/origin/commit/25e9bfcce342480625da47ec7107299f15b1e59b))
* **exchange:** set status as error when no enough funds ([0906418](https://github.com/energywebfoundation/origin/commit/09064182f67a4e7432f442e16b3d560029a01b43))


### Features

* **exchange:** authentication ([aaef626](https://github.com/energywebfoundation/origin/commit/aaef62612a452855b5ea40c8e081c356083d5e44))
* **exchange:** deposit watcher, transfers endpoint ([f0f5500](https://github.com/energywebfoundation/origin/commit/f0f5500228cce0d45896e2cd53d43f75e714edec))
* **exchange:** start watcher from last known block, fix e2e test exit ([b81ac32](https://github.com/energywebfoundation/origin/commit/b81ac32260ab754b5808bc3ac8b99e4eb47766a0))
* **exchange:** withdrawal e2e tests ([84dcdfa](https://github.com/energywebfoundation/origin/commit/84dcdfa81dfed0c3179b5aa350176b6afb55df69))
* **exchange:** withdrawal processor WIP ([e56b1dc](https://github.com/energywebfoundation/origin/commit/e56b1dc011475efe8cba125c0f12bef3d117fc92))





# [0.2.0](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@0.1.1...@energyweb/exchange@0.2.0) (2020-02-12)


### Bug Fixes

* **deps:** pin dependencies ([2088944](https://github.com/energywebfoundation/origin/commit/20889448a7923ac3c459806a119faae47645d8ba))
* **exchange:** use confirmed deposits and any withdrawals for accounting ([dce8a9c](https://github.com/energywebfoundation/origin/commit/dce8a9ce77f7e12d12300dc6efbae95696226f52))


### Features

* **exchange:** account info based on trades and deposits ([b6f7dbd](https://github.com/energywebfoundation/origin/commit/b6f7dbd1d76bc4d3772940effb95fb7ab743f7d3))
* **exchange:** forwarded integration. refactoring ([b2d8ac0](https://github.com/energywebfoundation/origin/commit/b2d8ac0e70a298e790e9115a9dfddaa98921ec82))
* **exchange:** product service, more accounting, e2e tests ([43813a2](https://github.com/energywebfoundation/origin/commit/43813a27c72f34a129b87e2925eb0e4312f530da))
* **exchange:** transfer and account services ([1001b50](https://github.com/energywebfoundation/origin/commit/1001b509f55a70d89e5329aecfff97b3945e8c91))
* **exchange:** withdrawals ([d7be8b3](https://github.com/energywebfoundation/origin/commit/d7be8b3f27c8b3d0521a034a6591f013ffba5aee))





## [0.1.1](https://github.com/energywebfoundation/origin/compare/@energyweb/exchange@0.1.0...@energyweb/exchange@0.1.1) (2020-02-04)


### Bug Fixes

* **deps:** update nest monorepo to v6.11.5 ([0ddc961](https://github.com/energywebfoundation/origin/commit/0ddc9619933b5dd0585c4767b7229bf502e55ccf))





# 0.1.0 (2020-01-31)


### Features

* **exchange:** basics ([b47f14d](https://github.com/energywebfoundation/origin/commit/b47f14d2fc5046ee96b60a958c94f00f3a8a8c08))
* **exchange:** order book endpoint ([253d4ce](https://github.com/energywebfoundation/origin/commit/253d4ce842e5a634b7f977902dd580236b8d8bd0))
