Helpdesk
  • Overview
    • Welcome to Finery Markets
    • About Our Products
      • FM Liquidity Match
        • Master Account
        • Sub-Account
      • FM Pulse
      • White Label solution
  • Product Features
    • Onboarding
    • Risk Management
    • Trading
      • Aggregated Order Book
      • Firm Order Book
      • Pending Limit Orders (GTC)
      • RFQ
      • Toxic Flow Protection
      • Markups
      • Authorized trading
      • Non-Deliverable Trading
      • Voice Trading
      • Interdealer Trading
    • Position Management
    • Settlements
      • Automated Settlements
      • Addresses
    • Control Center
      • Multi-Roles
      • Notifications
      • Reporting
      • Bulk Edit
    • Referral program
  • API Reference
    • Quick Start with API
      • For Market Makers
      • For Takers
    • Data Types
    • REST API
      • Client management
        • getSubaccounts
      • RFQ
        • getSettings
        • getSettings (authorized)
        • getUserSettings (authorized)
        • setUserSettings (authorized)
        • getProviders
        • getSessions
      • Trading
        • add
        • add (authorized)
        • Pending limit orders
          • add (pending limit order)
          • add (pending limit order) (authorized)
          • del
          • del (authorized)
          • delAll
          • delAll (authorized)
          • orders
          • orders (authorized)
        • mod
        • del
        • delAll
        • book
        • voiceTrade
        • liquidationTrade
        • dealHistory
        • dealHistory (authorized)
        • instruments
        • positions
        • instrumentMarkups
        • addInstrumentMarkups
        • delInstrumentMarkups
      • Settlements
        • settlementRequests
        • settlementOrders
        • settlementTransactions
        • settlementHistory
        • settlementTransactionHistory
        • addIncomingSettlementRequest
        • delIncomingSettlementRequest
        • delIncomingSettlementCPRequest
        • addOutgoingSettlementTransaction
        • addIncomingSettlementTransaction
        • sendSettlementTransaction
        • commitIncomingSettlementTransaction
        • delSettlementTransaction
      • Risk Management
        • climits
        • setCLimit
        • delCLimit
        • subaccountsLimits
        • setSubaccountLimit
        • delSubaccountLimit
        • enableTrading
        • disableTrading
        • cAssetLimits
        • setCAssetLimit
        • delCAssetLimit
        • cShortSalesBan
        • setShortSalesBan
        • delShortSalesBan
        • enableInstrumentsWhitelist
        • setInstrumentsWhitelist
        • disableInstrumentsWhitelist
        • instrumentsWhitelist
      • Non-deliverable Trading
        • settings/getOvernightRates
        • settings/setOvernightRates
    • Websocket API
      • Feed 'A' - Assets
      • Feed 'P' - Positions
      • Feed 'L' - Counterparty limits
      • Feed 'B' - Global order books
      • Feed 'F' - Tradable order books
      • Feed 'R' - Settlement requests
      • Feed 'N' - Settlement transactions
      • Feed 'K' - Positions
      • Feed 'O' - Orders
      • Feed 'S' - Settlement orders
      • RFQ
    • FIX API
      • Admin messages
      • Market Data
      • Trade
        • Trading for Takers
        • Trading for LPs and Masters
    • Troubleshooting Errors
      • List of Error Codes
      • Error 3
      • Error 6
      • Error 7
      • Error 14
Powered by GitBook
On this page
  • Do you offer automated settlements?
  • Do I need to settle every trade?
  • How would I use API to settle my open positions?
  1. Product Features
  2. Settlements

Automated Settlements

PreviousSettlementsNextAddresses

Last updated 9 months ago

Do you offer automated settlements?

Yes, we provide the technological infrastructure to automate the settlement process. Our API can supply the necessary data and commands to communicate with your custody providers, both crypto and fiat (if your bank supports API integrations).

Do I need to settle every trade?

No, you can have open positions for a trading day or more.

How would I use API to settle my open positions?

For example:

  1. Make a API request to fetch your current positions

  2. The retrieved table shows what you owe to LP and what the LP owes you. For example, You owe 0.004 BTC, FM-Test-MM owes You 173 USDCP

  3. Settle your side first

  4. Then, ; insert data from Positions (step 1) there (counterparty ID, currency, size (must exactly match what the LP will receive) and send a request

  5. In response, you receive transactionID, which must be saved to be inserted on one of the future steps

  6. Your custody provider (for example, Fireblocks) performs a transfer according to the parameters from paragraph 6 to the liquidity provider (LP). Their wallets remain unchanged, and you receive their addresses after completing the onboarding

  7. After Fireblocks has sent the crypto, it is important to collect the blockchain hash of the transfer

  8. After receiving the crypto hash of the transfer you perform another command:

  9. In this command, you need to insert the hash from the Fireblocks translation into the TXID field and "transactionId" from the response from paragraph 7

  10. You create a request for the funds you wish to receive using , either specifying only the currency/asset (The LP will send everything that can be withdrawn) or specifying both the currency and the size

  11. You will need to make requests to the command. From it, you will see what is sent to you and what needs to be confirmed upon receiving it. It is available in the 'Incoming settlement transactions' section

  12. Once the funds have landed in your accounts, you need to execute the command to commit.

Positions
add an outgoing transaction
sendOutgoingSettlementTransaction
addIncomingSettlementRequest
SettlementTransactions
CommitIncomingSettlementTransaction