user7881: I want to get reward amount for specific pool for specific epoch.
https://docs.blockfrost.io/#tag/Cardano-Pools/paths/~1pools~1%7Bpool_id%7D~1history/get
Above blockfrost api provides reward amount for specific epoch.
But for private pool, all rewards become margin, since its margin percent is 100%, so all rewards show as 0 in api response.
To get reward amount for private pool, I need to get margin amount.
How can I get margin amount for specific pool for specific epoch?

user28: The rewards should show in the Blockfrost API, are you sure you're not looking at first epoch that did not participate in staking yet?
As example, here is one of the eToros' pools that has 100% margin:
$ curl -s  -H "project_id: xx"  https://cardano-mainnet.blockfrost.io/api/v0/pools/2bf5a031b46b34c07937a769ff6f82b6a78a25c71022eaaf1f20eec9/history?order=desc | jq
[
  {
    "epoch": 377,
    "blocks": 73,
    "active_stake": "65000004590510",
    "active_size": 0.0025796400554051256,
    "delegators_count": 3,
    "rewards": "44005384326",
    "fees": "44005384326"
  },

As you can see both rewards and fees are returned.

7881: <p>I want to get reward amount for specific pool for specific epoch.</p>
<p><a href="https://docs.blockfrost.io/#tag/Cardano-Pools/paths/%7E1pools%7E1%7Bpool_id%7D%7E1history/get" rel="nofollow noreferrer">https://docs.blockfrost.io/#tag/Cardano-Pools/paths/~1pools~1%7Bpool_id%7D~1history/get</a></p>
<p>Above blockfrost api provides reward amount for specific epoch.</p>
<p>But for private pool, all rewards become margin, since its margin percent is 100%, so all rewards show as 0 in api response.</p>
<p>To get reward amount for private pool, I need to get margin amount.</p>
<p>How can I get margin amount for specific pool for specific epoch?</p>
 28: <p>The rewards should show in the Blockfrost API, are you sure you're not looking at first epoch that did not participate in staking yet?</p>
<p>As example, here is one of the eToros' pools that has 100% margin:</p>
<pre><code>$ curl -s  -H &quot;project_id: xx&quot;  https://cardano-mainnet.blockfrost.io/api/v0/pools/2bf5a031b46b34c07937a769ff6f82b6a78a25c71022eaaf1f20eec9/history?order=desc | jq
[
  {
    &quot;epoch&quot;: 377,
    &quot;blocks&quot;: 73,
    &quot;active_stake&quot;: &quot;65000004590510&quot;,
    &quot;active_size&quot;: 0.0025796400554051256,
    &quot;delegators_count&quot;: 3,
    &quot;rewards&quot;: &quot;44005384326&quot;,
    &quot;fees&quot;: &quot;44005384326&quot;
  },
</code></pre>
<p>As you can see both rewards and fees are returned.</p>
