Python bitcoin arbitrage program
paper money and bitcoin seem to be the same. First of all, you need to understand that bitcoin is not a virtual currency. Money is guaranteed. Paper money is guaranteed by national credit. Even game currency is guaranteed by the company, stocks are guaranteed by the company's asset revenue, and bitcoin is nothing without guarantee. So as long as bitcoin doesn't have a credible guarantee, beware of fraud. At present, it seems that tycoons are speculation, speculation arbitrage, and then escape the rhythm
the person in charge said that bitcoin was born in the environment of quantitative easing in the United States, and people realized that paper money can also be devalued. But the devaluation of paper money is related to the credit of the country, even the survival of the country
after the Chinese took over bitcoin, the tide rose. Do you pay attention to foreign media? Foreigners are selling bitcoin. Don't talk about the quality of bitcoin, it's not controlled by the government and so on. Let's see what people are doing? It's bitcoin for paper money. So you know who's reliable? Since bitcoin is good, what do you do with paper money
the most distressing thing is that foreign "players" are exchanging a string of codes for Chinese banknotes“ The Chinese who play catch
I suggest you search for "Ponzi scheme". Bitcoin pretends to be money, but money can buy things. Can you buy things with bitcoin? So bitcoin is money, and it's a fraud. Money needs circulation value
bitcoin is being bought and sold, so it's a commodity. Goods need use value. Taobao can wear pants. Next, please refer to the Ponzi scheme.
In short, the principle of brick Arbitrage: buy low and sell high, buy money from the place with low price and sell it at the place with high price, that is to earn the price difference of different platforms
but there are three risks in moving bricks:
A. time difference of currency transfer: it takes a certain waiting time to pick up or deposit the currency, so it may miss the best trading time
B. currency price fluctuation: if the currency price fluctuation is relatively large and the process of moving bricks has not been completed, the price difference has disappeared
C. platform problems: some trading platforms may shut down services from time to time, or even run away
principle: carry out brick arbitrage on two platforms at the same time to avoid the risk of "time difference of currency transfer" and "currency price fluctuation"
before moving bricks: the brick moving platform must support the same currency transaction, and the brick moving platforms must be able to transfer currency to each other
Step 1: price difference calculation. There are handling charges for currency trading and currency transfer, so you have to calculate the cost according to your own funds. Only when the price difference reaches how much can it be profitable to move bricks
Step 2: simultaneous operation. Buy BTC on the low price platform and sell BTC on the high price platform. At this time, the number of BTC holdings remains unchanged and the number of usdt increases You need to pay attention to transaction fees.)
Step 3: balance funds. It is difficult to predict which platform has a lower price and which has a higher price e to the price difference. Therefore, the two platforms that move bricks need to prepare usdt and BTC. When the price difference appears, it is convenient to move bricks There are also handling charges for cross platform currency transfer.)
the above is the principle and steps of risk-free arbitrage using BTC and usdt. It also has a big name: quantitative hedging. The fundamental purpose is to earn usdt, not BTC
You can take a closer look at this: Web links
took a look at the price of bitcoin. The more you get fired, the higher you get
for more information about bitcoin, please visit my website
learn bitcoin studybtc
Third, python has been proced for decades, and process oriented design was the mainstream decades ago, so many programs in Python use process oriented design methods, many concepts come from C language, class is added later in Python, and Java is used to realize c + + without pointer (reference counting used by com components in those years, virtual machine used by Java), It mainly adopts object-oriented design method, and many concepts are OOP concepts. Process oriented, relatively simple and intuitive, but easy to design noodle program, object-oriented, relatively abstract and elegant, but easy to over abstract
Fourth, it's easy to get started in the actual use of python, but to learn how to work with Python, you need to learn all kinds of Python libraries. The strength of pyhton lies in the library. The reason why the library of Python is powerful is that the library of Python can be designed with Python, C language, C + +, and then provided to python, so no matter how GPU runs, neural network, intelligent algorithm, data analysis, image processing, Scientific computing, all kinds of libraries are waiting for you. Java does not have as many open source libraries as python, many of which are used internally by commercial companies, or released as a jar package without the original code. Because the compiler of Python virtual machine is not as good as that of Java (or designed intentionally), it usually directly uses the source code (Linux), or simply packs the source code (such as pyexe)< 5. There are many virtual machine implementations in Python, such as python, python, pypy, Jython, ironpython, etc., which are suitable for business language, plug-in language, or domain oriented language, while Java is rarely used for plug-in language because of its huge size, and it is not convenient to publish< 6. Java is mainly used in the fields with strong business logic, such as mall system, ERP, OA, finance, insurance and other traditional database transaction fields. Through transaction codes similar to SSH framework, Java has better support for business databases, such as Oracle, DB2, SQL server, etc., and has strong software engineering concept, which is suitable for multi person development mode of software engineering. Python is mainly used for web data analysis, scientific computing, financial analysis, signal analysis, image algorithm, mathematical calculation, statistical analysis, algorithm modeling, server operation and maintenance, automatic operation, rapid development, strong concept, suitable for rapid development team or indivial agile mode< 7. There are many commercial companies supporting Java, such as SAP, Oracle, IBM, etc. there are commercial containers, middleware, enterprise framework and EJB. Many open source organizations support python, such as QT, Linux, Google, and many open source programs support python, such as pyqt, redis, spark, etc< 8. Python is most used for scripting, Java is most used for web, Python is glue, which can glue all kinds of irrelevant things together, Java is fag, which can form hundreds of personal teams and PK with you through software engineering, with strong commercial flavor. However, I think Python is still powerful, because it can easily call C or C + + libraries, but software engineering and commercial operation are not as good as Java, so it is suitable for rapid development< Nine, about money
if you want to write a program to sell software with Java, you can use IBM server, Oracle database, and EMC storage. The price is high, and commercial purchasing companies like this kind of high-end software. If you want to generate money directly with the program, you can use Python to realize kuanke finance, data back testing, stock speculation, option speculation, gold speculation, bitcoin speculation, hedge arbitrage, statistical arbitrage. There are many open source libraries, data analysis libraries and machine learning libraries for reference< 10. Java and python can run on Linux operating system, but many Linux can support Python natively, and Java needs to be installed by itself. The reason why Java and python are better than C # is that they support Linux, OSX, UNIX and arm. The reason why Java and python are more popular than C + + is that they don't need pointers< For mobile Internet, python can only run on Android or IOS through runtime. Java supports Android development, but not IOS< 12. For big data, it is more convenient to use java to open Hadoop, Scala to develop spark, and python to call spark for further analysis.