Author Topic: new api source for price feed from magicwallet faitCNY deposit / withdraw  (Read 274 times)

0 Members and 1 Guest are viewing this topic.

Online pluswave

Hello,
       MagicWallet team is ready for new api source for price feed. As you know , we have the faitCNY/bitCNY deposit/withdraw gateway (p2p), so can provide some data to witnesses now. But this data is not for public. As a witness, if you are interesting to use this source, please use one of the following methods to apply your api key:

1 . reply this topic, comment your email address and your witness account
2.  send a mail to [email protected]

the provided data is a array of accumulated deposit/withdraw transactions:


{  depositBitCNY: '0.0000',
    depositFiatCNY: '0.0000',
    depositCount: 0,
    withdrawBitCNY: '0.0000',
    withdrawFiatCNY: '0.0000',
    withdrawCount: 0,
    startdate: '2018-03-15T02:50:00.000Z',
    datelength: 1,
    datatype: '1m'
 },

the data is updated every minutes. you can get most recent data for:

1min
5min
15min
30min
1h
2h
4h
6h
12h
24h

blog: https://blog.xiaofuxing.name
org: https://www.magicwallet.io
Please vote for magicwallet.witness !

Offline blockchained

witness: blckchnd
mail: [email protected]

Online pluswave

A reference usage of this data is here: https://github.com/sunchao123456/btsprice .
The idea is , the recharge/withdraw price is compensated to the original BTS price through a user defined factor (0-1). For example, now magicwallet.witness set the factor to 0.4, While you can use 1.1 FaitCNY to get 1 bitCNY, it will compute:

   compensated BTS Price = original BTS Price * (1 + (1.1 - 1)*0.4)

if you can use 0.9 FaitCNY to get 1 bitCNY, it will compute:

   compensated BTS Price = original BTS Price * (1 + (0.9 - 1)*0.4)

The original BTS price is from a fork of alt's btsprice (crazybit's one).
blog: https://blog.xiaofuxing.name
org: https://www.magicwallet.io
Please vote for magicwallet.witness !

Offline rnglab

  • Full Member
  • ***
  • Posts: 171
    • View Profile
  • BitShares: rnglab
A reference usage of this data is here: https://github.com/sunchao123456/btsprice .
The idea is , the recharge/withdraw price is compensated to the original BTS price through a user defined factor (0-1). For example, now magicwallet.witness set the factor to 0.4, While you can use 1.1 FaitCNY to get 1 bitCNY, it will compute:

   compensated BTS Price = original BTS Price * (1 + (1.1 - 1)*0.4)

if you can use 0.9 FaitCNY to get 1 bitCNY, it will compute:

   compensated BTS Price = original BTS Price * (1 + (0.9 - 1)*0.4)

The original BTS price is from a fork of alt's btsprice (crazybit's one).

Excellent work!

Witness: rnglab
[email protected]