Ejemplo n.º 1
0
        internal string[] GetUnderlying(OKExInstrumentType instrumentType, CancellationToken token, out string error)
        {
            var responce = this.SendPublicGetRequest <string[][]>($"{this.settings.RestEndpoint}/api/v5/public/underlying?instType={instrumentType.GetEnumMember()}", token);

            error = responce.Message;
            return(responce.Data.FirstOrDefault() ?? new string[0]);
        }
Ejemplo n.º 2
0
        internal OKExSymbol[] GetSymbols(OKExInstrumentType instrumentType, CancellationToken token, out string error)
        {
            var responce = this.SendPublicGetRequest <OKExSymbol[]>($"{this.settings.RestEndpoint}/api/v5/public/instruments?instType={instrumentType.GetEnumMember()}", token);

            error = responce.Message;
            return(responce.Data ?? new OKExSymbol[0]);
        }