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

Questions about Market type #16

Open
leruaa opened this issue Jun 26, 2020 · 2 comments
Open

Questions about Market type #16

leruaa opened this issue Jun 26, 2020 · 2 comments

Comments

@leruaa
Copy link

leruaa commented Jun 26, 2020

Hello,

I have to retrieve trading rules (min / max order size, etc) from the Nash api. I'm using listMarkets(), and I have some questions about the Market type returned by this function:

  • What are minTradeIncrementB and minTradeSizeB?
  • There is no maxTradeSize?
  • How to know if a market allows market orders or not?

Thanks for your answers :)

@jankjr
Copy link
Contributor

jankjr commented Jul 3, 2020

What are minTradeIncrementB and minTradeSizeB?

minTradeIncrement(B) is the minimum precision the market supports. If the increment is 0.000001 then 1 and 1.000001 are valid. But 1.000000001 is not.

minTradeSize(B) is the minimum amount of each asset the trade must contain.

If a market has a minTradeSize of 0.5 and a minTradeSizeB of 0.01 the smallest trade possible is I want for buy 0.5 A for 0.01 B Essentially it controls the lowest limitPrice you can set.

There is no maxTradeSize?

No. But depending on your account tier the maximum trade is limited by your daily/monthly/yearly limits.

How to know if a market allows market orders or not?

All markets support market orders.

@leruaa
Copy link
Author

leruaa commented Jul 3, 2020

@jankjr Thanks for your answers :)

Another question about listAccountOrders(): Are the orders returned ordered ? If so, on what field ?

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

2 participants