Dinari · Arazzo Workflow

Onboard a customer and place a dShare order

Version 1.0.0

Create an entity, run KYC, open an account, find a stock, and place a managed market buy.

1 workflow 1 source API 1 provider
View Spec View on GitHub CompanyTokenized SecuritiesStocksETFsBrokerageMarket DataBlockchainStablecoinFintechKYCOrdersWalletsArazzoWorkflows

Provider

dinari

Workflows

onboardAndTrade
Full path from new customer to first managed dShare order.
6 steps inputs: amount, stock_symbol outputs: account_id, order_request_id
1
createEntity
createEntities
2
submitKyc
createEntityKyc
3
openAccount
createEntityAccounts
4
findStock
getStocks
5
placeOrder
createMarketBuyManagedOrderRequest
6
checkOrder
getOrderRequestById

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Onboard a customer and place a dShare order
  version: 1.0.0
  summary: Create an entity, run KYC, open an account, find a stock, and place a managed market buy.
sourceDescriptions:
  - name: dinari
    url: ../openapi/dinari-openapi-original.yml
    type: openapi
workflows:
  - workflowId: onboardAndTrade
    summary: Full path from new customer to first managed dShare order.
    inputs:
      type: object
      properties:
        stock_symbol: {type: string, default: AAPL}
        amount: {type: number, default: 10}
    steps:
      - stepId: createEntity
        operationId: createEntities
        outputs:
          entity_id: $response.body#/id
      - stepId: submitKyc
        operationId: createEntityKyc
        parameters:
          - name: entity_id
            in: path
            value: $steps.createEntity.outputs.entity_id
      - stepId: openAccount
        operationId: createEntityAccounts
        parameters:
          - name: entity_id
            in: path
            value: $steps.createEntity.outputs.entity_id
        outputs:
          account_id: $response.body#/id
      - stepId: findStock
        operationId: getStocks
        outputs:
          stock_id: $response.body#/0/id
      - stepId: placeOrder
        operationId: createMarketBuyManagedOrderRequest
        parameters:
          - name: account_id
            in: path
            value: $steps.openAccount.outputs.account_id
        outputs:
          order_request_id: $response.body#/id
      - stepId: checkOrder
        operationId: getOrderRequestById
        parameters:
          - name: account_id
            in: path
            value: $steps.openAccount.outputs.account_id
          - name: order_request_id
            in: path
            value: $steps.placeOrder.outputs.order_request_id
    outputs:
      account_id: $steps.openAccount.outputs.account_id
      order_request_id: $steps.placeOrder.outputs.order_request_id