> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rio.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Placing a T+n order

### Requirements to start the flow.

<CardGroup cols={2}>
  <Card title="API key" icon="shield-keyhole">
    Have an API key ([Tutorial here](/quickstart#api-key-generation)).
  </Card>
</CardGroup>

### <Icon icon="arrow-progress" iconType="solid" /> Order flow

The process of placing a T+n order is very similar to the process of placing a regular order, but with the addition of a few steps. In this guide, we will go through the process of placing a T+1 buy order.

<Note>
  **Disclaimer**: Settlement does not imply custody or receipt of funds before
  the order is executed on the date specified in the settlement details.
</Note>

<Steps>
  <Step title="Register the deposit crypto address">
    Before creating an order, you need to register the crypto address that will receive the funds. This only needs to be done once per address-currency pair.

    <Card title="Go to create a new crypto address" icon="square-code" href="/api-reference/address/create-address" />
  </Step>

  <Step title="Create a quote">
    When creating a T+n order, you need to specify the number of days until the order is settled. This is done by setting the `twoWaySettlementType` body parameter of the request to `TPlusOffset` and the `twoWaySettlementDateOffset` parameter to the number of business days until the order is settled.
    For example, if you want to place a T+0 buy order, you need to set the `twoWaySettlementDateOffset` field to 0. If you want to place a T+1 buy order, you need to set the `twoWaySettlementDateOffset` field to 1, etc. Keep in mind that banking hours and holidays may cause the effective settlement date to be different than what you expected. Please always confirm the `twoWaySettlementDate` field of the quote to get the effective settlement date and make sure it matches your expectation before creating an order.

    <Card title="Go to create quote endpoint" icon="square-code" href="/api-reference/quotes/create-quote" />
  </Step>

  <Step title="Create order">
    Once you are satisfied with a quote, you can create an order for the quoted amount.

    <Card title="Go to create order" icon="square-code" href="/api-reference/orders/create-order" />
  </Step>

  <Step title="Wait for the order to be ready to accept payment.">
    Poll the order or subscribe to our webhooks. Wait for the order to have a status of `awaitingPayment`. After this, you have until the payment due date (specified in the `paymentInstructions` field of the order) to pay for the order.

    <Card title="Go to check order status" icon="square-code" href="/api-reference/orders/get-order" />
  </Step>

  <Step title="Pay for the order (skip if placing the order in our sandbox environment)">
    Please send the amount specified in the `amountFiat` field of the order object to the bank account specified in the `paymentInstructions` field of the order. Do not forget to send the reference.
  </Step>

  <Step title="Confirm payment (optional)">
    This final step is only necessary if the payment is made in USD outside of the United States, or if the order was placed in our sandbox environment and you want to simulate a successful payment.

    <Card title="Go to confirm payment" icon="square-code" href="/api-reference/bank-payments/check-bank-payment" />
  </Step>

  <Step title="Wait for funds">
    Rio will send the funds to your wallet in the next few minutes.
  </Step>
</Steps>

#### <Icon icon="check-to-slot" iconType="solid" /> Poll order status or subscribe to webhooks

<Card title="Go to check order status" icon="square-code" href="/api-reference/orders/get-order" />

<Note>
  **Disclaimer**: All technical documentation is subject to the terms and
  conditions, which apply supplementarily and take precedence over the
  documentation.
</Note>
