Bitcoin Forum
May 07, 2024, 05:24:21 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Simple script for btc-e almost completed  (Read 1066 times)
xSplit (OP)
Full Member
***
Offline Offline

Activity: 241
Merit: 102


View Profile
February 18, 2017, 01:53:55 AM
 #1

Take a look is very simple might be useful to someone

http://pastebin.com/shXZFPBV
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715059461
Hero Member
*
Offline Offline

Posts: 1715059461

View Profile Personal Message (Offline)

Ignore
1715059461
Reply with quote  #2

1715059461
Report to moderator
1715059461
Hero Member
*
Offline Offline

Posts: 1715059461

View Profile Personal Message (Offline)

Ignore
1715059461
Reply with quote  #2

1715059461
Report to moderator
1715059461
Hero Member
*
Offline Offline

Posts: 1715059461

View Profile Personal Message (Offline)

Ignore
1715059461
Reply with quote  #2

1715059461
Report to moderator
apercoin
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile WWW
February 18, 2017, 09:03:21 AM
 #2

You probably want to move it to source control system like github. It will track you changes and other people can fork it.
Patatas
Legendary
*
Offline Offline

Activity: 1750
Merit: 1115

Providing AI/ChatGpt Services - PM!


View Profile
February 18, 2017, 10:18:20 AM
 #3

Take a look is very simple might be useful to someone

http://pastebin.com/shXZFPBV

You recently started programming ? What does the script do ? Though I don't know how  client side script would make a difference I'd like to point out a few "avoid-doing-that" in your script.

Code:
var balance_btc = 0.4345, balance_usd = 0;
var min_diff = 1;
var last_bid_price = parseFloat($('#max_price').html());
var last_ask_price = null;
var is_selling = false;
Globals! Avoid them!
Do you use ECMA Script 6 ? Don't assign fixed values to "var",use constant instead.Also "use strict".
Code:
sell(last_bid_price,balance_btc);

Use Jquery to call your global or wrap them with the ending "();" braces to make them IIEF (Immediately Involked Self Executing Functions)
pcoin
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
February 19, 2017, 08:41:42 AM
 #4

Simple script for btc-e almost completed people dont just go about downloading script without any purpose, you need to tell us what this script is designed to do on btc-e platform, is a trading bot, a script to protect account from hacking, a script to alert on profitable trade setup etc
arunka71
Sr. Member
****
Offline Offline

Activity: 410
Merit: 257


View Profile
February 19, 2017, 08:56:39 PM
 #5

If you combine it with something like apache cordova (for UI) you'd have a nice smartphone app.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!