potatoshop

Binance_Min_Limit_Order_amount_library

potatoshop Updated   
Library "Binance_Min_Limit_Order_amount_library"
TODO: This library give us the minimum Limit Order amount for the contract in Binance.

m_qty(n_v, m_fee, t_fee, cost, m_t)
  TODO: it give us the Minimum Qty for the trading in Binance
  Parameters:
    n_v: TODO: min_notional_value. 5 dollar is the minimum notional amount in Binance at the moment.
    m_fee: TODO: maker_fee %
    t_fee: TODO: taker_fee %
    cost: TODO: your investing money
    m_t: TODO: if you want Limit_Order, put the "T", if you want Market_Order, put the "M" defval="M"
  Returns: TODO: for the coin of binance on your chart,


Reference: www.binance.com/en/f...ing-rules/perpetual/
Release Notes:
v2

Updated:
m_qty(n_v, m_fee, t_fee, cost, price)
  TODO: it give us the Minimum Qty for the trading in Binance
  Parameters:
    n_v: TODO: min_notional_value. 5 dollar is the minimum notional amount in Binance at the moment.
    m_fee: TODO: maker_fee %
    t_fee: TODO: taker_fee %
    cost: TODO: your investing money
    price: TODO: Target price you want to trade in Limit_Order, if you want Market_Order, NaN
  Returns: TODO: for the coin of binance on your chart,
Release Notes:
v3

Added:
ceil_truncate()

truncate()
Release Notes:
v4
Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this library?

Copy the following line and paste it in your script.