BlockPo / BlockPo-to-Tradelayer

Incubation Repo for the TradeLayer protocol, 0.2.0
http://www.tradelayer.org
Other
8 stars 8 forks source link

getContractVolume RPC #293

Closed patrickdugan closed 1 year ago

patrickdugan commented 4 years ago

An RPC that takes contractid, start block and end block and returns notional volume in a given contract.

patrickdugan commented 3 years ago

Did this end up getting attended to when we re-worked volume RPCs earlier? Basically I pass a propertyid that happens to be for a contract, I should see the raw # of contracts traded? If so we can close this.

philmb3487 commented 3 years ago

is this equal to tl_getmdexvolume ?

patrickdugan commented 3 years ago

That's my question, maybe Ale can answer it or you could test this call when we have the contracts build working and we can resolve this.

patrickdugan commented 2 years ago

@santos177 Do we have an RPC for contract volume?

patrickdugan commented 1 year ago

I am just going to implement a simple looper in .js that takes the rpc payload from the tradehistoryunfiltered RPC and loops through, picks the tx with the block, takes the contracts traded in both denominations add them up between blocks. No need for C++.