nash-io / api-client-typescript

Official TypeScript client for interacting with the Nash Exchange.
MIT License
14 stars 3 forks source link

Questions about Market type #16

Open leruaa opened 4 years ago

leruaa commented 4 years ago

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:

Thanks for your answers :)

jankjr commented 4 years ago

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 commented 4 years ago

@jankjr Thanks for your answers :)

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