{
  "x402Version": 2,
  "id": 72540,
  "slug": "saylorinnovations-api-trading-position-size",
  "resource": "https://saylorinnovations.com/api/trading/position-size",
  "description": "Position size from account equity, risk percent, entry and stop: units, notional, leverage needed and target prices at chosen R multiples.",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "side": {
        "type": "string",
        "description": "Trade direction inferred from the stop (below entry is long)"
      },
      "account_usd": {
        "type": "number",
        "description": "Account equity used"
      },
      "risk_percent": {
        "type": "number",
        "description": "Percent of the account risked"
      },
      "risk_usd": {
        "type": "number",
        "description": "Amount lost if the stop is hit"
      },
      "entry_price": {
        "type": "number",
        "description": "Planned entry price"
      },
      "stop_price": {
        "type": "number",
        "description": "Stop loss price"
      },
      "stop_distance_percent": {
        "type": "number",
        "description": "Distance from entry to stop, in percent"
      },
      "position_size_units": {
        "type": "number",
        "description": "Units to buy or sell so the stop loses the risk amount"
      },
      "position_notional_usd": {
        "type": "number",
        "description": "Notional value of the position in USD"
      },
      "leverage_needed": {
        "type": "number",
        "description": "Notional divided by account equity"
      },
      "margin_for_10x_usd": {
        "type": "number",
        "description": "Margin needed if the position is opened at 10x"
      },
      "targets": {
        "type": "array",
        "description": "Take-profit prices at the requested R multiples",
        "items": {
          "type": "object",
          "properties": {
            "r_multiple": {
              "description": "Multiple of the initial risk",
              "type": [
                "number",
                "null"
              ]
            },
            "price": {
              "description": "Target price",
              "type": [
                "number",
                "null"
              ]
            },
            "profit_usd": {
              "description": "Profit in USD if the target is reached",
              "type": [
                "number",
                "null"
              ]
            }
          }
        }
      },
      "note": {
        "type": "string",
        "description": "Plain-language caveat about how to read and use the result"
      },
      "source": {
        "type": "string",
        "description": "Where the data or formula comes from"
      }
    },
    "required": [
      "position_size_units",
      "position_notional_usd"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "account_usd": "10000",
            "entry_price": "65000",
            "risk_percent": "1",
            "stop_price": "63000"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "side": "long",
            "account_usd": 10000,
            "risk_percent": 1,
            "risk_usd": 100,
            "entry_price": 65000,
            "stop_price": 63000,
            "stop_distance_percent": 3.0769,
            "position_size_units": 0.05,
            "position_notional_usd": 3250,
            "leverage_needed": 0.325,
            "margin_for_10x_usd": 325,
            "targets": [
              {
                "r_multiple": 1,
                "price": 67000,
                "profit_usd": 100
              },
              {
                "r_multiple": 2,
                "price": 69000,
                "profit_usd": 200
              },
              {
                "r_multiple": 3,
                "price": 71000,
                "profit_usd": 300
              }
            ],
            "note": "Sizes the trade so that hitting the stop loses about risk_percent of the account (fees included if fee_percent is given). Slippage can make a real stop fill worse.",
            "source": "Fixed fractional position sizing"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "account_usd": {
                    "type": "string",
                    "description": "account equity"
                  },
                  "entry_price": {
                    "type": "string",
                    "description": "planned entry"
                  },
                  "risk_percent": {
                    "type": "string",
                    "description": "percent of the account to risk, e.g. 1"
                  },
                  "stop_price": {
                    "type": "string",
                    "description": "stop loss price (below entry = long, above = short)"
                  }
                },
                "required": [
                  "account_usd",
                  "entry_price",
                  "risk_percent",
                  "stop_price"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "side": {
                    "type": "string",
                    "description": "Trade direction inferred from the stop (below entry is long)"
                  },
                  "account_usd": {
                    "type": "number",
                    "description": "Account equity used"
                  },
                  "risk_percent": {
                    "type": "number",
                    "description": "Percent of the account risked"
                  },
                  "risk_usd": {
                    "type": "number",
                    "description": "Amount lost if the stop is hit"
                  },
                  "entry_price": {
                    "type": "number",
                    "description": "Planned entry price"
                  },
                  "stop_price": {
                    "type": "number",
                    "description": "Stop loss price"
                  },
                  "stop_distance_percent": {
                    "type": "number",
                    "description": "Distance from entry to stop, in percent"
                  },
                  "position_size_units": {
                    "type": "number",
                    "description": "Units to buy or sell so the stop loses the risk amount"
                  },
                  "position_notional_usd": {
                    "type": "number",
                    "description": "Notional value of the position in USD"
                  },
                  "leverage_needed": {
                    "type": "number",
                    "description": "Notional divided by account equity"
                  },
                  "margin_for_10x_usd": {
                    "type": "number",
                    "description": "Margin needed if the position is opened at 10x"
                  },
                  "targets": {
                    "type": "array",
                    "description": "Take-profit prices at the requested R multiples",
                    "items": {
                      "type": "object",
                      "properties": {
                        "r_multiple": {
                          "description": "Multiple of the initial risk",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "price": {
                          "description": "Target price",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "profit_usd": {
                          "description": "Profit in USD if the target is reached",
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    }
                  },
                  "note": {
                    "type": "string",
                    "description": "Plain-language caveat about how to read and use the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Where the data or formula comes from"
                  }
                },
                "required": [
                  "position_size_units",
                  "position_notional_usd"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "position size calculator crypto",
    "size a trade risking 1 percent",
    "stop loss position sizing",
    "risk reward target prices",
    "leverage needed for trade size"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.958Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "account_usd": {
          "type": "string",
          "description": "account equity"
        },
        "entry_price": {
          "type": "string",
          "description": "planned entry"
        },
        "risk_percent": {
          "type": "string",
          "description": "percent of the account to risk, e.g. 1"
        },
        "stop_price": {
          "type": "string",
          "description": "stop loss price (below entry = long, above = short)"
        }
      },
      "required": [
        "account_usd",
        "entry_price",
        "risk_percent",
        "stop_price"
      ]
    },
    "exampleResponse": {
      "side": "long",
      "account_usd": 10000,
      "risk_percent": 1,
      "risk_usd": 100,
      "entry_price": 65000,
      "stop_price": 63000,
      "stop_distance_percent": 3.0769,
      "position_size_units": 0.05,
      "position_notional_usd": 3250,
      "leverage_needed": 0.325,
      "margin_for_10x_usd": 325,
      "targets": [
        {
          "r_multiple": 1,
          "price": 67000,
          "profit_usd": 100
        },
        {
          "r_multiple": 2,
          "price": 69000,
          "profit_usd": 200
        },
        {
          "r_multiple": 3,
          "price": 71000,
          "profit_usd": 300
        }
      ],
      "note": "Sizes the trade so that hitting the stop loses about risk_percent of the account (fees included if fee_percent is given). Slippage can make a real stop fill worse.",
      "source": "Fixed fractional position sizing"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "account_usd": "10000",
              "entry_price": "65000",
              "risk_percent": "1",
              "stop_price": "63000"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "side": "long",
              "account_usd": 10000,
              "risk_percent": 1,
              "risk_usd": 100,
              "entry_price": 65000,
              "stop_price": 63000,
              "stop_distance_percent": 3.0769,
              "position_size_units": 0.05,
              "position_notional_usd": 3250,
              "leverage_needed": 0.325,
              "margin_for_10x_usd": 325,
              "targets": [
                {
                  "r_multiple": 1,
                  "price": 67000,
                  "profit_usd": 100
                },
                {
                  "r_multiple": 2,
                  "price": 69000,
                  "profit_usd": 200
                },
                {
                  "r_multiple": 3,
                  "price": 71000,
                  "profit_usd": 300
                }
              ],
              "note": "Sizes the trade so that hitting the stop loses about risk_percent of the account (fees included if fee_percent is given). Slippage can make a real stop fill worse.",
              "source": "Fixed fractional position sizing"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "account_usd": {
                      "type": "string",
                      "description": "account equity"
                    },
                    "entry_price": {
                      "type": "string",
                      "description": "planned entry"
                    },
                    "risk_percent": {
                      "type": "string",
                      "description": "percent of the account to risk, e.g. 1"
                    },
                    "stop_price": {
                      "type": "string",
                      "description": "stop loss price (below entry = long, above = short)"
                    }
                  },
                  "required": [
                    "account_usd",
                    "entry_price",
                    "risk_percent",
                    "stop_price"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "side": {
                      "type": "string",
                      "description": "Trade direction inferred from the stop (below entry is long)"
                    },
                    "account_usd": {
                      "type": "number",
                      "description": "Account equity used"
                    },
                    "risk_percent": {
                      "type": "number",
                      "description": "Percent of the account risked"
                    },
                    "risk_usd": {
                      "type": "number",
                      "description": "Amount lost if the stop is hit"
                    },
                    "entry_price": {
                      "type": "number",
                      "description": "Planned entry price"
                    },
                    "stop_price": {
                      "type": "number",
                      "description": "Stop loss price"
                    },
                    "stop_distance_percent": {
                      "type": "number",
                      "description": "Distance from entry to stop, in percent"
                    },
                    "position_size_units": {
                      "type": "number",
                      "description": "Units to buy or sell so the stop loses the risk amount"
                    },
                    "position_notional_usd": {
                      "type": "number",
                      "description": "Notional value of the position in USD"
                    },
                    "leverage_needed": {
                      "type": "number",
                      "description": "Notional divided by account equity"
                    },
                    "margin_for_10x_usd": {
                      "type": "number",
                      "description": "Margin needed if the position is opened at 10x"
                    },
                    "targets": {
                      "type": "array",
                      "description": "Take-profit prices at the requested R multiples",
                      "items": {
                        "type": "object",
                        "properties": {
                          "r_multiple": {
                            "description": "Multiple of the initial risk",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "price": {
                            "description": "Target price",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "profit_usd": {
                            "description": "Profit in USD if the target is reached",
                            "type": [
                              "number",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "note": {
                      "type": "string",
                      "description": "Plain-language caveat about how to read and use the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Where the data or formula comes from"
                    }
                  },
                  "required": [
                    "position_size_units",
                    "position_notional_usd"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/trading/position-size?account_usd=10000&risk_percent=1&entry_price=65000&stop_price=63000",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "side": "string",
    "account_usd": 0,
    "risk_percent": 0,
    "risk_usd": 0,
    "entry_price": 0,
    "stop_price": 0,
    "stop_distance_percent": 0,
    "position_size_units": 0,
    "position_notional_usd": 0,
    "leverage_needed": 0,
    "margin_for_10x_usd": 0,
    "targets": [
      {
        "r_multiple": 0,
        "price": 0,
        "profit_usd": 0
      }
    ],
    "note": "string",
    "source": "string"
  }
}