C# implementation of a Shrimpy api client
In order to be able to run some integration tests, you should create a .env file in the src folder with the following variables:
ShrimpyApiConfiguration__ApiKey=********
ShrimpyApiConfiguration__ApiSecret=********
In order to be able to run some integration tests you should ensure that you have access to the following AWS parameters :
/[environment]/Trakx/Shrimpy/ApiClient/ShrimpyApiConfiguration/ApiKey
/[environment]/Trakx/Shrimpy/ApiClient/ShrimpyApiConfiguration/ApiSecret
/[environment]/Trakx/Shrimpy/ApiClient/ShrimpyApiConfiguration/FavouriteExchangesAsCsv
- If you work with external API, you probably need to update OpenAPI definition added to the project. It's usually openApi3.yaml file.
- Do right click on the project and select Edit Project File. In the file change value of
GenerateApiClientproperty to true. - Rebuild the project.
NSwagtarget will be executed as post action. - The last thing to be done is to run integration test
OpenApiGeneratedCodeModifierthat will rewrite auto generated C# classes to use C# 9 features like records and init keyword.