mtapi icon indicating copy to clipboard operation
mtapi copied to clipboard

Deprecated Methods

Open giovannifrisina opened this issue 5 years ago • 2 comments

Transferring the solution on VS2017, I've had some issues about obsolete methods. I think the porting tried to convert the functions without result. How can I resolve the issue? For example:

private void OrderClosePrice() { var result = _apiClient.OrderClosePrice(); textBoxOrderPrice.Text = result.ToString(CultureInfo.CurrentCulture); PrintLog($"OrderClosePrice result: {result}"); }

[Obsolete("OrderClosePrice is deprecated, please use GetOrder instead.")] public double OrderClosePrice() { return SendCommand(MtCommandType.OrderClosePrice, null); }

Thanks

giovannifrisina avatar Feb 08 '19 13:02 giovannifrisina

This is not a error. It's just a compiler warning. The developer has marked these features as obsolete. You can ignore or disable the warning.

KptKuck avatar Feb 10 '19 00:02 KptKuck

Yes, some functions are marked as obsolete and they have another implementation for using in the applications. I think there is a time to remove them from the API after migration the project to VS2017.

vdemydiuk avatar Feb 20 '19 09:02 vdemydiuk