Kodiak Fix DMA Order Instruction Service

To support dma orders we need to create a version OrderInstructionService which will use the OrderValidationAdapter.
The OrderValidationAdapter validates incomming dma orders and verifies that the given external user does not exceed the defined limits.
It does this by calculating the order value and checking if the order limit or daily limits are exceded.
For market orders with a price it calls a service at livemarketdata to get a price to calculate with.

 

Deployment

1 Add the following files

C:\KodiakOrderEntryServer\Kodi.Kodiak.OrderEntry.Dma.dll
C:\KodiakOrderEntryServer\Kodi.Kodiak.OrderEntry.Dma.dll.pdb

C:\KodiakOrderEntryServer\Config\Spring\Kodi.Kodiak.OrderInstructions.Dma.config

2 Edit the application configuration file:

C:\KodiakOrderEntryServer\Kodi.Kodiak.WindowsServices.OrderEntryServer.exe.config

Add the following resource to the spring/context node below Kodi.Kodiak.OrderInstructions.config

<resource uri="~/Config/Spring/Kodi.Kodiak.OrderInstructions.Dma.config" />

3 Edit Config/ServiceConfig/CustomServices.config and add the service

<object id="OrderInstructionServiceDma" type="Kodi.Kodiak.Services.OrderInstructionService, Kodi.Kodiak.OrderInstructions" singleton="false" scope="session"> <property name="OrderInstructionEntry" ref="OrderInstructionEntryDma"/> <property name="OrderInstructionSearch" ref="OrderInstructionSearch"/> </object>

4 Edit Config/ServiceConfig/system.servicemodel.services.config and add the service

<service behaviorConfiguration="ServiceBehavior" name="OrderInstructionServiceDma"> <endpoint address="" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding" contract="Kodi.Kodiak.Services.ServiceContracts.IOrderInstructionService" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service>

Kodi.Kodiak.OrderInstructions.Dma.config settings

 

 

Â