ooples / OoplesFinance.YahooFinanceAPI

A .NET API wrapper for Yahoo Finance that allows users to get top trending stocks, historical stock data, stock splits, dividends, capital gains, and much much more!
Apache License 2.0
55 stars 12 forks source link

Error code line 16 #19

Closed Lilxxchrisxx closed 1 year ago

Lilxxchrisxx commented 1 year ago

It shows an error in line 16 of the code that you provide and it says this"JSON integer 15728700416 is too large or small for an Int32. Path 'quoteSummary.result[0].defaultKeyStatistics.impliedSharesOutstanding.raw', line 1, position 1063.", already send you and email and I would really appriciate if you find a way to fix it thank you

ooples commented 1 year ago

@Lilxxchrisxx Just did an update and new version on nuget is 1.5 which will fix this error for you. Please get the latest version and confirm that the issue is resolved.

Lilxxchrisxx commented 1 year ago

so I try and now when I try running it just open the terminal and it closes it

Screen Shot 2023-06-29 at 2 10 55 AM

I don't know if is just me doing something wrong or what and thank you for your help.

ooples commented 1 year ago

According to your screenshot, you have the unit test project set as your start up project. If you want to use this library in your existing project then you would want to install it via nuget package but if you just want to run this for testing then make sure the TestConsoleApp is set as your start up project

Franklin

On Thu, Jun 29, 2023 at 2:13 AM Lilxxchrisxx @.***> wrote:

so I try and now when I try running it just open the terminal and it closes it [image: Screen Shot 2023-06-29 at 2 10 55 AM] https://user-images.githubusercontent.com/137856345/249687668-fa02053d-cadf-466d-85b2-be2d03eec41f.png I don't know if is just me doing something wrong or what and thank you for your help.

— Reply to this email directly, view it on GitHub https://github.com/ooples/OoplesFinance.YahooFinanceAPI/issues/19#issuecomment-1612483965, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXO4ZL45OZOGAHP4NAY2SLXNUMKHANCNFSM6AAAAAAZWOHPRY . You are receiving this because you commented.Message ID: @.***>

Lilxxchrisxx commented 1 year ago

alright, now it shows anothe error it says this "System.InvalidOperationException has been thrown'' its for line 49 and thank you a lot for the help

ooples commented 1 year ago

What is the message for that exception?

On Thu, Jun 29, 2023 at 9:59 AM Lilxxchrisxx @.***> wrote:

alright, now it shows anothe error it says this "System.InvalidOperationException has been thrown'' its for line 49 and thank you a lot for the help

— Reply to this email directly, view it on GitHub https://github.com/ooples/OoplesFinance.YahooFinanceAPI/issues/19#issuecomment-1613235128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXO4ZMF67UYJ2UENNFS27TXNWC4VANCNFSM6AAAAAAZWOHPRY . You are receiving this because you commented.Message ID: @.***>

Lilxxchrisxx commented 1 year ago

it just says this "Requested Information Not Available On Yahoo Finance"

ooples commented 1 year ago

Yeah that means what it says. What symbol are you trying to use? Which method are you using?

On Thu, Jun 29, 2023, 10:58 AM Lilxxchrisxx @.***> wrote:

it just says this "Requested Information Not Available On Yahoo Finance"

— Reply to this email directly, view it on GitHub https://github.com/ooples/OoplesFinance.YahooFinanceAPI/issues/19#issuecomment-1613333482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXO4ZM5BZBSHTIXKDZLVI3XNWJYVANCNFSM6AAAAAAZWOHPRY . You are receiving this because you commented.Message ID: @.***>

Lilxxchrisxx commented 1 year ago

I trying to use the same code you have, You can look at it in one of the comments that as the screenshot

ooples commented 1 year ago

@Lilxxchrisxx line 49 is this:

//var chartInfoList = await yahooClient.GetChartInfoAsync("GOOG", TimeRange._1Year, TimeInterval._1Day);

When I uncomment it, it works just fine without errors so can you please give me more info so I can replicate what you are doing?

github-actions[bot] commented 1 year ago

Stale issue message