コード例 #1
0
        public VolumeGraph(VolumeContext context, NetworkGraph networkGraph, PriceGraph priceGraph)
        {
            Context      = context;
            NetworkGraph = networkGraph;
            PriceGraph   = priceGraph;
            Meta         = networkGraph.Meta;

            _dN.BuildData(PriceGraph.PairsByNetwork);

            var id = "VolumeGraph".GetObjectIdHashCode();

            if (context.FlushVolume)
            {
                VolumeDbProvider.Clear(id);
            }

            VolumeDbProvider = new VolumeDbProvider(id);

            _volume = GetAllVolumeData();

            ApplyBtc();

            FilterVolume(_dN.PairsByNetwork);

            VolumeExceptionCheck();
        }
コード例 #2
0
ファイル: PriceGraph.cs プロジェクト: treverson/prime
        public PriceGraph(PricesContext context, NetworkGraph networkGraph)
        {
            PricesContext  = context;
            NetworkContext = networkGraph.Context;
            NetworkGraph   = networkGraph;

            _dN.BuildData(networkGraph.PairsByNetworkN);

            Refresh();
        }