Got query to return data.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Polygon.Client\Polygon.Client.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,12 @@
|
||||
using Polygon.Client;
|
||||
|
||||
Console.WriteLine("Start");
|
||||
|
||||
var client = new PolygonClient("");
|
||||
var request = new AllTickersRequest();
|
||||
var result = await client.GetAllTickersAsync(request);
|
||||
var a = result.Results.ToList();
|
||||
|
||||
Console.WriteLine(result.Status);
|
||||
Console.WriteLine("End");
|
||||
Console.ReadKey();
|
||||
Reference in New Issue
Block a user