Skip to content

MT4 Dotnet Core #18

@maartenschalekamp

Description

@maartenschalekamp

Good day,

I am trying to replicate what you have done for MT5 but to do it as well for MT4. When using the MtApiServiceNetCore I am able to connect, but somewhere I believe there is some issue with the data contract or something.

I get the following error:
System.ServiceModel.CommunicationException: 'Service connection failed! The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:GetQuotesResult. The InnerException message was 'There was an error deserializing the object of type System.Collections.Generic.List 1'[[MTApiService.MtQuote, MtApiServiceNetCore, Version=1.0.32.0, Culture=neutral, PublicKeyToken=null]]. The input source is not correctly formatted.'. Please see InnerException for more details.'

and the inner exception.
{"The input source is not correctly formatted."}

Any suggestions on what could be the issue. When using the MtApiService directly does work fine (in dotnet framework).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions