i create the function testjson() for test if i call ?
aList2[:symbol] it must return 2 ETHBUSD ,and it work , but why
if i extract a json with function it return only a first ETHBUSD
and sencond jump out , i notice take only a first of double also
in other part of jason if find it example BTCUSDT and second
symbol is the same it jump a second symbol , why o_O
my function
func DwnldHistoryOrder(){ // funzione per scaricare da binance e
popolare il database da usare la prima volta
aSymbol = SelectDBinance ("Bin_ExchangeInfo_1","symbol",0,3)
aId= SelectDBinance ("HistoryOrder","idt",0,3)
//?type(aId)
//?aId
if len(aID) = 0 // se il db e' vuoto
for i=635 to len(aSymbol)
?"SONO A "+i +" totale da vedere sono "+len(aSymbol) +" sono al
symbol "+aSymbol[i][1]
zioT=MyTimeStamp()
//?zioT
ZioSg=BinSHA256Signature
("symbol="+aSymbol[i][1]+"&recvWindow=50000×tamp="+zioT+";"+SecretKeyBin)
//?ZioSg
zio=BinApiAccountTradeList(""+ApiKeyBin+";"+aSymbol[i][1]+";0;0;0;0;0;50000;"+zioT+";"+ZioSg)
//?zio
//?Type(zio)
if substr(zio,"symbol")
if substr(zio,"{") =2 // se non e' vuoto
aList = Json2List(Zio)
// ?aList
//mysee(aList,1)
symb = aList[1][1][:symbol]
?symb
TransID = aList[1][1][:id]
OrdId = aList[1][1][:orderId]
OrdListID = aList[1][1][:orderListId]
Price = aList[1][1][:price]
OrgQt = aList[1][1][:qty]
QuoteQt = aList[1][1][:quoteQty]
Comms = aList[1][1][:commission]
CommAsset = aList[1][1][:commissionAsset]
Timestamp = aList[1][1][:time]
BuyOrSell = aList[1][1][:isBuyer]
TakerOrMaker = aList[1][1][:isMaker]
IsBestMatch = aList[1][1][:isBestMatch]
aLHistory=[symb,TransID,OrdId,OrdListID,Price,OrgQt,QuoteQt,Comms,CommAsset,Timestamp,BuyOrSell,TakerOrMaker,IsBestMatch,""]
// ?aLHistory
aColumnHistoryOrder=["symbol","TransID","orderId","orderListId","price","Qty","QuoteQty",
"Commission","CommissionAsset","timeStampTrans","IsBuyer","isMaker","IsBestMatch","Comment"]
// InsertInDBinace (
"HistoryOrder",aColumnHistoryOrder,aLHistory )
ok
ok
sleep(5)
next
else // il database history non e vuoto
ok