VentzCoin.GetRecordsHour
Skip to content
mnscript
VentzCoinRecord[] VentzCoin.GetRecordsHour() 

Description ​

Gets the VentzCoin history for the past hour.

Returns ​

VentzCoinRecord[] - 60 records for each minute of the past hour of VentzCoin

Example ​

msc
using Console;
using VentzCoin;
using Util;
using Array;

// Prints the value of VentzCoin for each minute of the past hour.

VentzCoinRecord[] records = VentzCoin.GetRecordsHour();
number numRecords = Array.Length(records);
number recordIndex = 1;

while(recordIndex <= numRecords){
    VentzCoinRecord record = records[recordIndex];
    
    Console.WriteLine("Record "..recordIndex..": "..record.GetValue());
    recordIndex = recordIndex + 1;
}