0
tập trung vào
0
Người theo dõi

Cách phân tích thông tin cặp giao dịch json

Được tạo ra trong: 2018-06-05 16:32:57, cập nhật trên: 2019-07-31 17:33:32
comments   5
hits   1696

Các tham số chiến lược cấu hình các thông tin cơ bản về giao dịch như sau, cách phân tích bằng js, ít nhất có thể lấy được khóa và giá trị. { “bigone”:{ “BTC/USDT”:{ “enable”:0, “amount_prec”:5, “buy_fee_ratio”:0.001, “delay_threshold”:300, “depth_ratio”:0.2, “maxtrd_amount”:0.01, “mintrd”:10, “mintrd_type”:“quote”, “pause_rounds”:5, “price_prec”:3, “sell_fee_ratio”:0.001 }, “EOS/BTC”:{ “amount_prec”:1, “buy_fee_ratio”:0.001, “delay_threshold”:300, “depth_ratio”:0.2, “maxtrd_amount”:5, “mintrd”:0.001, “mintrd_type”:“quote”, “pause_rounds”:5, “price_prec”:8, “sell_fee_ratio”:0.001 }, “EOS/USDT”:{ “amount_prec”:4, “buy_fee_ratio”:0.001, “delay_threshold”:300, “depth_ratio”:0.2, “maxtrd_amount”:5, “mintrd”:10, “mintrd_type”:“quote”, “pause_rounds”:5, “price_prec”:3, “sell_fee_ratio”:0.001 }, “ETC/BTC”:{ “amount_prec”:2, “buy_fee_ratio”:0.001, “delay_threshold”:300, “depth_ratio”:0.2, “maxtrd_amount”:4, “mintrd”:0.001, “mintrd_type”:“quote”, “pause_rounds”:5, “price_prec”:8, “sell_fee_ratio”:0.001 }, “ETH/BTC”:{ “amount_prec”:4, “buy_fee_ratio”:0.001, “delay_threshold”:300, “depth_ratio”:0.2, “maxtrd_amount”:0.1, “mintrd”:0.001, “mintrd_type”:“quote”, “pause_rounds”:5, “price_prec”:8, “sell_fee_ratio”:0.001 }, “ETH/EOS”:{ “amount_prec”:4, “buy_fee_ratio”:0.001, “delay_threshold”:300, “depth_ratio”:0.2, “maxtrd_amount”:0.1, “mintrd”:1, “mintrd_type”:“quote”, “pause_rounds”:5, “price_prec”:1, “sell_fee_ratio”:0.001 }, “ETH/USDT”:{ “enable”:0, “amount_prec”:4, “buy_fee_ratio”:0.001, “delay_threshold”:300, “depth_ratio”:0.2, “maxtrd_amount”:0.1, “mintrd”:10, “mintrd_type”:“quote”, “pause_rounds”:5, “price_prec”:3, “sell_fee_ratio”:0.001 } } }

Bạn có thể thử dùng HTML, nhưng khi bạn định lượng nhà phát minh, bạn sẽ không nhận được giá trị. Mã số: function main(){ Log(parameter); for (var i in parameter) { for (var j in parameter[i]) { for (var k in parameter[i][k]) { Log ((“đang đi qua k:” + k + “==” + parameter[i][j][k]); } } } } Thông tin in:

Thời gian, nền tảng, loại, giá, số lượng, thông tin 2018-06-04 00:00:00 Thông tin { “bigone”:{ “BTC/USDT”:{ “enable”:0, “amount_prec”:5,