Skip to content

Releases: BaseMax/bonbast-api

Fix and port to new version of bonbast.com website

04 Sep 23:46
Compare
Choose a tag to compare
$ php example.php
Array
(
    [US Dollar] => Array
        (
            [sell] => 59500
            [buy] => 59400
        )

    [Euro] => Array
        (
            [sell] => 65950
            [buy] => 65850
        )

    [British Pound] => Array
        (
            [sell] => 78200
            [buy] => 78000
        )

    [Swiss Franc] => Array
        (
            [sell] => 70150
            [buy] => 70050
        )

    [Canadian Dollar] => Array
        (
            [sell] => 44000
            [buy] => 43900
        )

    [Australian Dollar] => Array
        (
            [sell] => 40000
            [buy] => 39900
        )

    [Swedish Krona] => Array
        (
            [sell] => 5790
            [buy] => 5775
        )

    [Norwegian Krone] => Array
        (
            [sell] => 5595
            [buy] => 5580
        )

    [Russian Ruble] => Array
        (
            [sell] => 670
            [buy] => 665
        )

    [Thai Baht] => Array
        (
            [sell] => 1745
            [buy] => 1740
        )

    [Singapore Dollar] => Array
        (
            [sell] => 45600
            [buy] => 45500
        )

    [Hong Kong Dollar] => Array
        (
            [sell] => 7630
            [buy] => 7600
        )

    [Azerbaijani Manat] => Array
        (
            [sell] => 34800
            [buy] => 34700
        )

    [Armenian Dram] => Array
        (
            [sell] => 1535
            [buy] => 1530
        )

    [Danish Krone] => Array
        (
            [sell] => 8835
            [buy] => 8815
        )

    [UAE Dirham] => Array
        (
            [sell] => 16290
            [buy] => 16250
        )

    [Japanese Yen] => Array
        (
            [sell] => 4120
            [buy] => 4110
        )

    [Turkish Lira] => Array
        (
            [sell] => 1750
            [buy] => 1730
        )

    [Chinese Yuan] => Array
        (
            [sell] => 8365
            [buy] => 8345
        )

    [KSA Riyal] => Array
        (
            [sell] => 15850
            [buy] => 15750
        )

    [Indian Rupee] => Array
        (
            [sell] => 710
            [buy] => 705
        )

    [Ringgit] => Array
        (
            [sell] => 13650
            [buy] => 13550
        )

    [Afghan Afghani] => Array
        (
            [sell] => 845
            [buy] => 840
        )

    [Kuwaiti Dinar] => Array
        (
            [sell] => 194800
            [buy] => 194400
        )

    [Iraqi Dinar] => Array
        (
            [sell] => 4540
            [buy] => 4530
        )

    [Bahraini Dinar] => Array
        (
            [sell] => 157850
            [buy] => 157350
        )

    [Omani Rial] => Array
        (
            [sell] => 154550
            [buy] => 154250
        )

    [Qatari Riyal] => Array
        (
            [sell] => 16300
            [buy] => 16200
        )

    [Azadi] => Array
        (
            [sell] => 38300000
            [buy] => 37700000
        )

    [Emami] => Array
        (
            [sell] => 43450000
            [buy] => 43100000
        )

    [½ Azadi] => Array
        (
            [sell] => 23400000
            [buy] => 23100000
        )

    [¼ Azadi] => Array
        (
            [sell] => 15400000
            [buy] => 15100000
        )

    [Gerami] => Array
        (
            [sell] => 7200000
            [buy] => 6900000
        )

    [Gold Gram] => Array
        (
            [sell] => 3633824
        )

    [Gold Mithqal] => Array
        (
            [sell] => 15741000
        )

    [Gold Ounce] => Array
        (
            [sell] => 2496.49
        )

    [Bitcoin] => Array
        (
            [sell] => 58084.85
        )

)
{"US Dollar":{"sell":"59500","buy":"59400"},"Euro":{"sell":"65950","buy":"65850"},"British Pound":{"sell":"78200","buy":"78000"},"Swiss Franc":{"sell":"70150","buy":"70050"},"Canadian Dollar":{"sell":"44000","buy":"43900"},"Australian Dollar":{"sell":"40000","buy":"39900"},"Swedish Krona":{"sell":"5790","buy":"5775"},"Norwegian Krone":{"sell":"5595","buy":"5580"},"Russian Ruble":{"sell":"670","buy":"665"},"Thai Baht":{"sell":"1745","buy":"1740"},"Singapore Dollar":{"sell":"45600","buy":"45500"},"Hong Kong Dollar":{"sell":"7630","buy":"7600"},"Azerbaijani Manat":{"sell":"34800","buy":"34700"},"Armenian Dram":{"sell":"1535","buy":"1530"},"Danish Krone":{"sell":"8835","buy":"8815"},"UAE Dirham":{"sell":"16290","buy":"16250"},"Japanese Yen":{"sell":"4120","buy":"4110"},"Turkish Lira":{"sell":"1750","buy":"1730"},"Chinese Yuan":{"sell":"8365","buy":"8345"},"KSA Riyal":{"sell":"15850","buy":"15750"},"Indian Rupee":{"sell":"710","buy":"705"},"Ringgit":{"sell":"13650","buy":"13550"},"Afghan Afghani":{"sell":"845","buy":"840"},"Kuwaiti Dinar":{"sell":"194800","buy":"194400"},"Iraqi Dinar":{"sell":"4540","buy":"4530"},"Bahraini Dinar":{"sell":"157850","buy":"157350"},"Omani Rial":{"sell":"154550","buy":"154250"},"Qatari Riyal":{"sell":"16300","buy":"16200"},"Azadi":{"sell":"38300000","buy":"37700000"},"Emami":{"sell":"43450000","buy":"43100000"},"\u00bd Azadi":{"sell":"23400000","buy":"23100000"},"\u00bc Azadi":{"sell":"15400000","buy":"15100000"},"Gerami":{"sell":"7200000","buy":"6900000"},"Gold Gram":{"sell":"3633824"},"Gold Mithqal":{"sell":"15741000"},"Gold Ounce":{"sell":"2496.49"},"Bitcoin":{"sell":"58084.85"}}

fix: integration with the new Bonbast web-service

02 Aug 10:16
e109dbe
Compare
Choose a tag to compare

The bonbast function now sends two HTTP requests per call
First, to the homepage to extract the key.
Second, to the https://www.bonbast.com/json path.

Second Version

06 Aug 22:40
7683cc6
Compare
Choose a tag to compare

Gold Coins Added.

New Coins:

  • Bahar Azadi
  • Emami
  • One half Azadi
  • One quarter Azadi
  • Gerami

First Version

06 Aug 22:22
54dfdaf
Compare
Choose a tag to compare
0.9

Update README.md