Forkast Developer Docs
Forkast SDK Integration Guide
6 min
welcome to the forkastsdk quickstart guide this walkthrough shows how to authenticate, explore markets, and place your first trade installation the forkast sdk supports node js (20 x or later) and python(3 12 or later ) npm install @forkastgg/client\@0 0 1 beta arb 6pip install forkast py client==0 2 0 usage initialize the sdk to start interacting with the forkast platform, you must initialize the sdk and get access to the available services import { forkastsdk, network } from "@forkastgg/client"; // initialize the sdk const sdk = new forkastsdk(network mainnet,"your api key");import asyncio from forkast py client import forkastsdk, network async def main() async with forkastsdk(network mainnet, "your api key") as sdk market service = sdk get market service() event = await market service get event data(35) print(event) asyncio run(main()) testnet version is not available to the public users access the services once the sdk is initialized, you can access several high level services these services are used to interact with prediction markets, user accounts, balances, and orders // get service instances const marketservice = sdk getmarketservice(); const accountservice = sdk getaccountservice(); const balancesservice = sdk getbalancesservice(); const orderservice = sdk getorderservice(); complete example find the docid mirkvzdlb1xxc7szklqu here services for more detailed functions, visit docid 443t170zqrejz1k1cx82f license mit