Code a bot to automate price settings through Localbitcoins API

Pågående Publicerat 5 år sedan Betalades vid leverans
Pågående Betalades vid leverans

A bot made to automate adverts prices, to check / scrape every few seconds and automatically beat the highest/lowest advert listed

-----------------------------------------------------------------------------------------------------------------------------------------------

The bot must be able to (Via API calls to [login to view URL] - [login to view URL]) scrape any page or pages specified (listed in a text file for ease)

Example page to be scraped would be:

[login to view URL]

[login to view URL]

The bot would need to be able to determine the lowest/highest price offered on a page, from the other active adverts … and slightly beat the prices as set (and can be changed as required)

A simple text file for configuration would be great

This needs to work for both buying and selling through [login to view URL]

So example of how the bot would work:

I enter into a text / configuration file the following URL:

[login to view URL]

The bot scrapes this page every (X) seconds and it then adjusts (via API call) the price on my advert to be slightly higher/lower than all of the other adverts listed on this page.

I should also be able to choose how much higher or lower I'd want the bot to adjust my advert to, example:

Bot scrapes selected page on localbitcoins. It finds that the current highest advert price is $100. I've chosen to always increase my advert with $1, so the bot will now adjust my advert to $101.

After (X) seconds, the same page is scraped again and now perhaps a new advert is listed at the same price as my advert ($101) so bot will now increase my advert to $102.

After (X) seconds, the same page is scraped again and now perhaps the highest price offered on other adverts are $90, so bot should now adjust my advert from $102 down to $91.

This task will be repeated over & over again until I chose to cancel.

There must be upper and lower limits. So I can set do not go below XXX or above XXX when both buying and selling.

It would only need to do this task and should not interact in the actual sales process ( when a trade is opened there is no requirement to automate )

Bitcoin Webbskrapning

Projekt-id: #18935107

About the project

Distansprojekt Aktivt 5 år sedan