topcoderasdf

Results 17 comments of topcoderasdf
trafficstars

Formal Spec for Futures Trading Transaction Types - Realized Profit ( treated as buy at 0 spot price) - Realized Loss (treated as sell at 0 spot price)

Actually I think we will have to spend some time thinking about how to treat realized profit and realized loss.

> But then I realized futures transactions don't affect the crypto in/out flow (if I understand them correctly): they are purely fiat gains/losses and your crypto stash remains unaffected. Is...

Yes, while we don't know how CoinGecko comes up with its normalized price data, I think it is actually quite necessary, especially to resolve transactions prior to 2017. CoinGecko is...

For the first point, I don't quite understand why we need to programmatically distinguish transaction hashes from internal ids. Current design already takes either internal ids or hashes. For the...

You could also use web3 infrastructure APIs. The followings provide free tier for their API usage. Moralis: https://docs.moralis.io/reference/getwallettokentransfers Block Daemon: https://blockdaemon.com/products/universal-api/ Covalent HQ: https://www.covalenthq.com I actually haven't used them, but...

Btw, COLLATERIZE and LEND will share the same logic. They will get removed from the FIFO queue and then put back in during UNCOLLATERIZE/RECOVER. Only difference would be with COLLATERIZE,...