Giter Club home page Giter Club logo

fcoin-api-python-'s Introduction

Attention: 此文档仅供参考学习使用

Welcome to StudyQuant Pages

Fcoin交易所 API接口

REST API

Fcoin API Python 接口 提供API使用的示例程序, Fcoin接口是提供服务的基础,开发者在Fcoin网站创建账号后,可以根据自身需求建立不同权限的API,并利用API进行自动交易或者提现。

通过API可以快速实现以下功能:

  • 获取市场最新行情

  • 获取买卖深度信息

  • 查询可用和冻结金额

  • 查询自己当前尚未成交的挂单

  • 快速买进卖出

  • 批量撤单

  • 快速提现到您的认证地址

欢迎加入API技术讨论及策略讨论

QQ群:422922984 加群请留言 Fcoin API

wechat: perfecteducation-

文档来源:

https://developer.fcoin.com/zh.html#45fa4e00db

供大家学习使用

使用示例参见:example.py

fcoin2.py适用于python2版本

fcoin3.py适用于python3版本

代码示例

# python 3 
import pandas as pd 
from fcoin3 import Fcoin
from datetime import datetime

fcoin = Fcoin()
fcoin.auth('key', 'secret') 

#取K线数据 

ft_usdt = fcoin.get_candle('M3','ftusdt') 
#M3 = 分钟线,  symbol = 'ftusdt'

# response 

  {'base_vol': 1193812.5219603,
   'close': 0.895758,
   'count': 2916,
   'high': 0.89616,
   'id': 1529043300,
   'low': 0.89496,
   'open': 0.896156,
   'quote_vol': 1069132.55492841,
   'seq': 656494600001}

fcoin-api-python-'s People

Contributors

studyquant avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.