Пример #1
0
            public BinanceAssetInfo(SymbolDetail s)
            {
                symbol              = s.symbol;
                baseAsset           = s.baseAsset;
                baseAssetPrecision  = s.baseAssetPrecision;
                quoteAsset          = s.quoteAsset;
                quoteAssetPrecision = s.quotePrecision;
                status              = s.status;
                orderTypes          = s.orderTypes.ToList();

                foreach (var f in s.filters)
                {
                    string filterType = f.filterType;
                    if (filterType == "PRICE_FILTER")
                    {
                        minPrice = f.minPrice;
                        maxPrice = f.maxPrice;
                        tickSize = f.tickSize;
                    }
                    else if (filterType == "LOT_SIZE")
                    {
                        minQty   = f.minQty;
                        maxQty   = f.maxQty;
                        stepSize = f.stepSize;
                    }
                    else if (filterType == "MIN_NOTIONAL")
                    {
                        minNotional = f.minNotiona;
                    }
                }
            }
Пример #2
0
 public static void FillSymbolDetail(this PdfBuilder builder, SymbolDetail detaill)
 {
     builder.FillImageInAcroForm(detaill.IconDetail);
     builder.FillFieldInAcroForm(detaill.TextDetail);
 }