Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Rest20.GetPricingAsync(AccountId, parameters) #7

Open
mszoke01 opened this issue Oct 27, 2023 · 0 comments
Open

Error in Rest20.GetPricingAsync(AccountId, parameters) #7

mszoke01 opened this issue Oct 27, 2023 · 0 comments

Comments

@mszoke01
Copy link

Hello. When I use the following code:

var AcctPairsList = new List() { "AUD_JPY", "CAD_JPY", "CHF_JPY", "GBP_JPY", "NZD_JPY", "USD_JPY", "AUD_NZD", "AUD_USD", "USD_CAD", "USD_CHF", "USD_DKK", "USD_NOK", "USD_SEK", "GBP_USD", "NZD_USD" };
var parameters = new Rest20.PricingParameters() { instruments = AcctPairsList };
var AcctPrice = await Rest20.GetPricingAsync(AccountId, parameters);

I get the following error message.

Input string '1000000.0' is not a valid integer. Path 'prices[7].bids[0].liquidity', line 1, position 3334.

Think I traced it to PriceBucket.cs line 16. public int liquidity { get; set; } should be decimal??

Let me know what you think. Thanks.
Regards,
Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant