ऑफिशियल एसडीके लाइब्रेरीज़

Python, JavaScript, Go, और Rust के लिए ऑफिशियल क्लाइंट लाइब्रेरीज़। टाइप्ड क्लाइंट्स, ऑटोमैटिक रिट्राय लॉजिक, और WebSocket सपोर्ट के साथ API इंटीग्रेशन को सरल बनाएं।

Python एसडीके

पैकेज: smartmoney-api

इंस्टॉलेशन: pip install smartmoney-api

रिपो: github.com/smartmoneyapi/python-client

Python
from smartmoney import SmartMoneyAPI # क्लाइंट इनिशियलाइज़ करें client = SmartMoneyAPI(api_key="sk_live_abc123xyz789") # व्हेल पोजीशन्स प्राप्त करें whales = client.whale_positions(symbol="BTCUSDT", limit=50) for position in whales: print(f"{position.wallet_address}: {position.position_size} BTC @ {position.entry_price}") # फंडिंग रेट्स प्राप्त करें funding = client.funding_rates(symbol="BTCUSDT", interval="4h", limit=24) # लाइव अपडेट्स स्ट्रीम करें with client.stream_whale_positions(["BTCUSDT", "ETHUSDT"]) as stream: for update in stream: print(f"Position update: {update}")

फीचर्स

  • Async/await सपोर्ट (asyncio, aiohttp)
  • ऑटोमैटिक रिट्राय एक्सपोनेंशियल बैकऑफ़ के साथ
  • ऑटो-रिकनेक्ट के साथ WebSocket स्ट्रीमिंग
  • टाइप हिंट्स और IDE ऑटोकम्पलीट
  • रिक्वेस्ट लॉगिंग और डिबगिंग

JavaScript एसडीके

पैकेज: smartmoney-api

इंस्टॉलेशन: npm install smartmoney-api

रिपो: github.com/smartmoneyapi/js-client

JavaScript
import { SmartMoneyAPI } from "smartmoney-api"; const client = new SmartMoneyAPI({ apiKey: "sk_live_abc123xyz789" }); // व्हेल पोजीशन्स प्राप्त करें const whales = await client.whalePositions({ symbol: "BTCUSDT", limit: 50 }); whales.positions.forEach(pos => { console.log(`${pos.wallet_address}: ${pos.position_size} BTC`); }); // रियल-टाइम अपडेट्स स्ट्रीम करें const stream = client.streamWhalePositions(["BTCUSDT", "ETHUSDT"]); stream.on("data", (update) => { console.log("Position update:", update); }); stream.on("error", (err) => { console.error("Stream error:", err); });

Go एसडीके

मॉड्यूल: github.com/smartmoneyapi/go-client

इंस्टॉलेशन: go get github.com/smartmoneyapi/go-client

Go
package main import ( "fmt" "github.com/smartmoneyapi/go-client" ) func main() { // क्लाइंट बनाएं client := smartmoney.NewClient("sk_live_abc123xyz789") // व्हेल पोजीशन्स प्राप्त करें positions, err := client.WhalePositions(ctx, &smartmoney.WhalePositionsFilter{ Symbol: "BTCUSDT", Limit: 50, }) if err != nil { panic(err) } for _, pos := range positions { fmt.Printf("%s: %.2f BTC\n", pos.WalletAddress, pos.PositionSize) } }

Rust एसडीके

क्रेट: smartmoney-api

इंस्टॉलेशन: cargo add smartmoney-api

Rust
use smartmoney_api::Client; #[tokio::main] async fn main() -> Result<(), Box> { let client = Client::new("sk_live_abc123xyz789"); // व्हेल पोजीशन्स प्राप्त करें let positions = client .whale_positions() .symbol("BTCUSDT") .limit(50) .send() .await?; for position in positions.iter() { println!( "{}: {} BTC @ {}", position.wallet_address, position.position_size, position.entry_price ); } Ok(()) }

कॉमन पैटर्न्स

एरर हैंडलिंग

सभी एसडीके रिच एरर टाइप्स प्रदान करते हैं जिनमें ऑटोमैटिक रिट्राय लॉजिक शामिल है। एरर्स में स्टेटस कोड, एरर कोड, और ह्यूमन-रीडेबल मैसेज शामिल होते हैं।

रिक्वेस्ट टाइमआउट्स

कॉन्फिगरेबल रिक्वेस्ट टाइमआउट्स (डिफ़ॉल्ट 30s)। लॉन्ग-रनिंग ऑपरेशन्स के लिए कस्टम टाइमआउट सेट करें।

रेट लिमिट हैंडलिंग

रेट लिमिट हिट होने पर ऑटोमैटिक एक्सपोनेंशियल बैकऑफ़। Retry-After हेडर का सम्मान करता है।

अपना एसडीके चुनें

अपनी पसंदीदा भाषा के साथ शुरुआत करें। पूरी डॉक्यूमेंटेशन और उदाहरण शामिल हैं।

API रेफरेंस देखें
मुफ्त में शुरू करें — 100 कॉल्स/दिन, कोई कार्ड नहीं

एक API से 3 एक्सचेंजेस पर लाइव व्हेल फ्लो, फंडिंग, ओपन इंटरेस्ट और ऑन-चेन डेटा प्राप्त करें। फ्री टियर, कोई क्रेडिट कार्ड नहीं, कभी भी अपग्रेड करें।

मुफ्त में शुरू करें →
लाइव API कंसोल आज़माएं → (कोई अकाउंट नहीं चाहिए)
30 सेकंड में अपना API की प्राप्त करें

बिल्ड करने के लिए तैयार हैं? मुफ्त API की प्राप्त करें (100 कॉल्स/दिन, कोई कार्ड नहीं) और लाइव व्हेल, फंडिंग और ऑन-चेन डेटा पुल करना शुरू करें।

अपना API की प्राप्त करें →