Example Code to Buy/Sell on Polymarket

Zaprto Objavljeno pred 2 letoma/leti Plačilo ob prevzemu
Zaprto Plačilo ob prevzemu

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

ID projekta: #32646644

Več o projektu

4 predlogov Oddaljen projekt Aktiven pred 2 letoma/leti

4 freelancerjev ponuja v povprečju za £113 na tem delu

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 Več

£135 GBP v 7 dneh
(0 ocen)
0.0