Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Binance.org API requests & responses.
Synopsis
- getAllRewards :: MonadHttp m => Text -> m [Reward]
- data Reward = Reward {}
- data Endpoint a where
- GetRewards :: Text -> Maybe Integer -> Maybe Integer -> Endpoint RewardResponse
- makeRequest :: MonadHttp m => Endpoint a -> m a
- data RewardResponse = RewardResponse {}
Rewards
getAllRewards :: MonadHttp m => Text -> m [Reward] Source #
Fetch all rewards for the given Delegator PubKey.
A single staking reward.
Reward | |
|
Instances
Low-Level Requests & Responses
data Endpoint a where Source #
Represents all endpoints of the binance.org api, as well as their respective response data.
GetRewards :: Text -> Maybe Integer -> Maybe Integer -> Endpoint RewardResponse |
makeRequest :: MonadHttp m => Endpoint a -> m a Source #
Make a request to an endpoint.
data RewardResponse Source #
Response of requesting a delegator's rewards.