Skip to main content

Getting Started

This guide walks through a first planned integration with Senticore.

Closed beta access

Public SDK and API access are scheduled for the Q3 2026 closed beta. Examples below use the intended public integration surface and may change before mainnet.

Prerequisites

  • A Web3 wallet such as MetaMask, Rabby, Frame, or WalletConnect.
  • Closed beta API credentials when external access opens.
  • Testnet or capped beta collateral when the relevant environment is available.

1. Install the SDK

npm install @sentico-labs/sdk

The public SDK package will be published with the Q3 2026 closed beta.

2. Initialize a client

import {SenticoClient} from '@sentico-labs/sdk';

const client = new SenticoClient({
baseUrl: 'https://api.beta.sentico-labs.xyz',
signer: yourEthersSigner,
});

3. Browse markets

const markets = await client.getMarkets();

console.log(markets);
// [
// {id: 'BTC-USDC', tickSize: '0.01', lotSize: '0.0001'},
// {id: 'ETH-USDC', tickSize: '0.01', lotSize: '0.001'}
// ]

4. Place your first order

const order = await client.placeOrder({
market: 'BTC-USDC',
side: 'buy',
type: 'limit',
price: '60000',
quantity: '0.01',
timeInForce: 'gtc',
});

5. Listen for fills

client.subscribeFills((fill) => {
console.log(`Filled ${fill.quantity} @ ${fill.price}`);
});

6. Withdraw

const withdrawal = await client.requestWithdrawal({
asset: 'USDC',
amount: '100',
});

await client.waitForCheckpoint(withdrawal.batchId);

const tx = await client.executeWithdrawal(withdrawal.id);
await tx.wait();

Next steps