Skip to content

Python bot crypto 5 min #81

Description

import { ClobClient } from "@polymarket/clob-client";

const client = new ClobClient("https://clob.polymarket.com");

async function run() {
const market = await client.getMarket("TOKEN_ID");

const price = market.lastTradePrice;

if (price < 0.40) {
console.log("Signal d'achat");
// création puis envoi d'un ordre
}

if (price > 0.50) {
console.log("Signal de vente");
// création puis envoi d'un ordre
}
}

setInterval(run, 5000);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions