vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
523 stars 282 forks source link

Deprecated Methods #141

Open giovannifrisina opened 5 years ago

giovannifrisina commented 5 years ago

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

KptKuck commented 5 years ago

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.

vdemydiuk commented 5 years ago

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.