Example Code to Buy/Sell on Polymarket

Cerrado Publicado hace 2 años Pagado a la entrega
Cerrado Pagado a la entrega

I am new to node.js and looking for some easy to understand example code to use the buy/sell method on Polymarket [login to view URL] running on Matic network, along with instructions/support on setting up and running the example code to make a test buy/sell, and confirm it is working on my portfolio page at [login to view URL]

I would ideally prefer it to be as simple/basic as possible without using too many imports/external dependencies and have some basic error checking to check if the buy/sell went through successfully.

Polymarket Token Buy Test

[login to view URL]

Polymarket SDK Buy

[login to view URL]

Polymarket ABIs

[login to view URL]

For example:

[login to view URL]

[login to view URL]

Presumably Inputs will be:

- Matic Private Key (from Metamask?)

- Market Contract Address (0x4102aE3C30c1eb8eeAf36B7A22b87774d374Db0e)

- Type buy/sell

- Outcome Index (0 => "Democrat", 1 => "Republican")

- Amount (e.g. $1.00)

Ideally if minOutcomeTokensToBuy / maxOutcomeTokensToSell can be automatically calculated (using calcBuyAmount?) so they do not need to be entered?

Node.js

Nº del proyecto: #32646644

Sobre el proyecto

4 propuestas Proyecto remoto Activo hace 2 años

4 freelancers están ofertando un promedio de £113 por este trabajo

AlgoWriter

EXPERT IN JAVASCRIPT, HTML5, CSS C, C++, PYTHON, JAVA AND PHP, BOT MAKING AND SCRIPTING, AUTOMATION,DATA SCIENCE, AI PHD DEGREE IN SOFWARE ENGINEERING AND ARCHITECTURE. HELLO DEAR CLIENT! Thank you for sharing your p Más

£135 GBP en 7 días
(0 comentarios)
0.0