Skip to main content

Mobile Trading SDK

The BLGV Mobile Trading SDK provides React Native components and hooks for seamless DEX integration within the mobile app.

๐Ÿ“ฑ Mobile DEX Integrationโ€‹

Trading Componentsโ€‹

import { TradingView, OrderBook, TradeHistory } from '@blgv/mobile-trading';

const DEXTradingScreen = () => {
return (
<View style={styles.container}>
<TradingView pair="BTC/USDT" />
<OrderBook pair="BTC/USDT" />
<TradeHistory userId={currentUser.id} />
</View>
);
};

Trading Hooksโ€‹

import { useTrading, useOrderBook, useMarketData } from '@blgv/mobile-trading';

const TradingHook = () => {
const { placeOrder, cancelOrder, orders } = useTrading();
const { bids, asks, spread } = useOrderBook('BTC/USDT');
const { price, volume, change } = useMarketData('BTC/USDT');

const handleTrade = async () => {
await placeOrder({
pair: 'BTC/USDT',
side: 'buy',
type: 'limit',
amount: '0.1',
price: '45000'
});
};

return (
// Trading UI components
);
};

๐Ÿ” Security Featuresโ€‹

  • Biometric authentication for trades
  • Hardware wallet integration
  • Secure key storage
  • Transaction signing

โšก Lightning Integrationโ€‹

  • Instant deposits via Lightning
  • Lightning withdrawals
  • Channel management
  • Payment routing

Need help? Check our DEX Platform or Mobile App documentation.